Skip to content

#2012bf

a dark, electric blue · cool · closest name: Medium Blue

RGB
32, 18, 191
HSL
245°, 83%, 41%
CMYK
83, 91, 0, 25
Luminance
0.0450

At a glance

Every number on this page in one read: what #2012bf is made of, how bright it looks, and which way it leans.

Hex
#2012bf
Hue
245°
blue
Saturation
83%
electric
Lightness
41%
dark
Brightness
75%
HSV value
Perceived
27%
weighted brightness
Luminance
0.0450
WCAG relative
Temperature
Cool
81/100 cool
Color family
Blue
Tone
Electric
Best ink
White
11.05:1
Closest name
Medium Blue
ΔE2000 1.9
Where it sits
Hue245° of 360°
Saturation83%
Lightness41%
Temperature
Warm ← → Cool81% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#2012bf
RGBrgb(32, 18, 191)
HSLhsl(245, 83%, 41%)
CMYKcmyk(83%, 91%, 0%, 25%)
LABlab(25.3 59.9 -82.8)
LCHlch(25.3 102.1 305.9)
OKLCHoklch(0.383 0.239 269.5)
Decimal2101951
Display P3color(display-p3 0.125 0.071 0.749)

Copy-ready code

/* CSS */
color: #2012bf;
background-color: #2012bf;
/* Tailwind (arbitrary) */
class="text-[#2012bf] bg-[#2012bf]"
/* SCSS */
$brand: #2012bf;
/* SwiftUI */
Color(red: 0.125, green: 0.071, blue: 0.749)
/* Android */
Color.parseColor("#2012bf")
/* Flutter */
Color(0xFF2012BF)
/* Python / OpenCV (BGR) */
(191, 18, 32)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #2012bf · 11.05:1
Use #ffffffAAA at every size.
Aa
White text · 11.05:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.90:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2012bf as text scores 11.05:1 on white and 1.90:1 on black.

Accessibility — WCAG contrast

Aa
#2012bf on white: 11.05:1
AA ✓ pass · AA-large · AAA
Aa
#2012bf on black: 1.90:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0044C3
deuteranopia · #0033BC
tritanopia · #005170

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2012bf is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F3F2FC
#E7E6FA
#CAC6F6
#A098F5
#7165F1
#4132EC
#2615E0
#2012bf
#190E95
#160F6C
#0E0943
Base = 700Lightest = 50 · #F3F2FCDarkest = 950 · #0E0943
:root {
  --brand-50: #F3F2FC;
  --brand-100: #E7E6FA;
  --brand-200: #CAC6F6;
  --brand-300: #A098F5;
  --brand-400: #7165F1;
  --brand-500: #4132EC;
  --brand-600: #2615E0;
  --brand-700: #2012bf;
  --brand-800: #190E95;
  --brand-900: #160F6C;
  --brand-950: #0E0943;
  --brand: #2012bf;
  --brand-ink: #ffffff;
}

Colors that work with #2012bf

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F5F4FA
Tinted page background
Border#C3C0ED
Hairlines and dividers
Muted text#514B9B
Captions on the surface
Accent#BEA10E
Second voice, not a rival
Dark variant#140B75
Hover, pressed, headers
Light variant#E9E8FD
Selected rows, tints
Dark surface#151424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #2012bf

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#B1BF12
Analogous left#125ABF
Analogous right#7712BF
Split-complement 1#BF7712
Split-complement 2#5ABF12
Triadic 1#BF2012
Triadic 2#12BF20
Tetradic#BF125A

RGB percentages

Red12.5%
Green7.1%
Blue74.9%

CMYK percentages

Cyan83.2%
Magenta90.6%
Yellow0.0%
Key (black)25.1%

Color previews

#2012bf text on a black background

contrast 1.90:1

Card sample

#2012bf text on a white background

contrast 11.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2012bf;
Background color
Panel with #2012bf background
background-color: #2012bf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #2012bf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(32, 18, 191, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(32, 18, 191, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2012bf;
background: linear-gradient(135deg, #2012bf, #9412BF);

Monochromatic scale

Palettes built from #2012bf

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#2012bf in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#2012bf, answered

What color is #2012bf?

#2012bf is a dark electric blue, closest to Medium Blue (ΔE2000 1.9). It sits at 245° on the hue wheel with 83% saturation and 41% lightness, which reads as cool.

What is the RGB value of #2012bf?

rgb(32, 18, 191) — 32 red, 18 green and 191 blue out of 255, or 12.5% / 7.1% / 74.9% by channel.

Is #2012bf a light or a dark color?

It is a dark color. Relative luminance is 0.0450 and perceived brightness is 27%, so white text on it reaches 11.05:1.

Should I use black or white text on #2012bf?

White. It scores 11.05:1 against #2012bf, versus 1.90:1 for black — AAA at any size.

What is the complementary color of #2012bf?

#B1BF12 sits directly opposite on the wheel. Softer options are the split-complements #BF7712 and #5ABF12, which give the same contrast with far less vibration.

What colors go well with #2012bf?

For interface work: #F5F4FA as the surface, #C3C0ED for borders, #514B9B for secondary text, #BEA10E as an accent and #140B75 for hover and pressed states. For a palette, the analogous pair #125ABF and #7712BF stays calm, while #B1BF12 is the loudest partner.

What is #2012bf in CMYK for printing?

cmyk(83%, 91%, 0%, 25%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #2012bf warm or cool?

Cool — it scores 81 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #6012BF; nudged cooler, #1037C1.

Work with #2012bf in the Color Lab