#212F97#212F97
#212F97 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.1% C 0.168 H 269.7°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).
Color values
| HEX | #212F97 |
|---|---|
| RGB | rgb(33, 47, 151) |
| HSL | hsl(233, 64%, 36%) |
| HSV | hsv(233, 78%, 59%) |
| CMYK | cmyk(78.1%, 68.9%, 0%, 40.8%) |
| CIE-LAB | lab(25.53, 32.81, -58.21) |
| CIE-LCH | lch(25.53, 66.82, 299.41°) |
| OKLab | oklab(37.13% -0.001 -0.1685) |
| OKLCH | oklch(37.13% 0.168 269.7) |
| XYZ | xyz(7.2277, 4.5899, 29.7772) |
| Luminance | 0.0459 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.59
Royal
#0C1793
ΔE00 5.90
Blueberry
#464196
ΔE00 6.51
Darkslateblue
#483D8B
ΔE00 6.90
Indigo Blue
#3A18B1
ΔE00 7.17
Cobalt Blue
#030AA7
ΔE00 7.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212F97 #978921
analogous
#216A97 #212F97 #4E2197
triadic
#212F97 #97212F #2F9721
tetradic
#212F97 #97216A #978921 #21974E
square
#212F97 #97216A #978921 #21974E
split-complementary
#212F97 #974E21 #6A9721
monochromatic
#0B1033 #161F65 #212F97 #2C3FC9 #5867DA
Accessibility & contrast
On white
10.95
#212F97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#212F97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212F97
10.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212F97 | 1.00 | 10.95 | 1.92 | 10.95 |
| #FFFFFF | 10.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #212f97; /* rgb */ color: rgb(33, 47, 151); /* oklch */ color: oklch(37.1% 0.168 269.7);
Tailwind
colors: {
custom: {
50: '#7167b7',
500: '#212f97',
950: '#000000',
},
}SCSS
$custom: #212f97; $custom-light: #7167b7; $custom-dark: #000000;
JSON
{
"hex": "#212f97",
"rgb": {
"r": 33,
"g": 47,
"b": 151
},
"hsl": {
"h": 232.881,
"s": 64.13,
"l": 36.078
},
"oklch": {
"l": 0.37128,
"c": 0.16849,
"h": 269.7
},
"luminance": 0.04591
}Semantic roles & 50–950 ramp
primary
#212F97
secondary
#BEB255
accent
#D341E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80