#212F9B#212F9B
#212F9B is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.174 H 269.5°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).
Color values
| HEX | #212F9B |
|---|---|
| RGB | rgb(33, 47, 155) |
| HSL | hsl(233, 65%, 37%) |
| HSV | hsv(233, 79%, 61%) |
| CMYK | cmyk(78.7%, 69.7%, 0%, 39.2%) |
| CIE-LAB | lab(25.93, 34.29, -60.01) |
| CIE-LCH | lch(25.93, 69.11, 299.74°) |
| OKLab | oklab(37.54% -0.0014 -0.1737) |
| OKLCH | oklch(37.54% 0.174 269.5) |
| XYZ | xyz(7.5581, 4.7221, 31.5171) |
| Luminance | 0.0472 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.22
Royal
#0C1793
ΔE00 5.88
Blueberry
#464196
ΔE00 6.56
Indigo Blue
#3A18B1
ΔE00 6.75
Darkslateblue
#483D8B
ΔE00 7.08
Cobalt Blue
#030AA7
ΔE00 7.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212F9B #9B8D21
analogous
#216C9B #212F9B #50219B
triadic
#212F9B #9B212F #2F9B21
tetradic
#212F9B #9B216C #9B8D21 #219B50
square
#212F9B #9B216C #9B8D21 #219B50
split-complementary
#212F9B #9B5021 #6C9B21
monochromatic
#0C1036 #162069 #212F9B #2C3ECD #5A69DC
Accessibility & contrast
On white
10.80
#212F9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#212F9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212F9B
10.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212F9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212F9B | 1.00 | 10.80 | 1.94 | 10.80 |
| #FFFFFF | 10.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #212f9b; /* rgb */ color: rgb(33, 47, 155); /* oklch */ color: oklch(37.5% 0.174 269.5);
Tailwind
colors: {
custom: {
50: '#7268ba',
500: '#212f9b',
950: '#000000',
},
}SCSS
$custom: #212f9b; $custom-light: #7268ba; $custom-dark: #000000;
JSON
{
"hex": "#212f9b",
"rgb": {
"r": 33,
"g": 47,
"b": 155
},
"hsl": {
"h": 233.115,
"s": 64.894,
"l": 36.863
},
"oklch": {
"l": 0.37535,
"c": 0.17375,
"h": 269.5
},
"luminance": 0.04723
}Semantic roles & 50–950 ramp
primary
#212F9B
secondary
#C0B458
accent
#D540E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81