#212971#212971
#212971 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.3% C 0.123 H 272.6°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).
Color values
| HEX | #212971 |
|---|---|
| RGB | rgb(33, 41, 113) |
| HSL | hsl(234, 55%, 29%) |
| HSV | hsv(234, 71%, 44%) |
| CMYK | cmyk(70.8%, 63.7%, 0%, 55.7%) |
| CIE-LAB | lab(20.44, 22.44, -42.67) |
| CIE-LCH | lch(20.44, 48.22, 297.74°) |
| OKLab | oklab(32.31% 0.0056 -0.123) |
| OKLCH | oklch(32.31% 0.123 272.6) |
| XYZ | xyz(4.3998, 3.1011, 15.9863) |
| Luminance | 0.0310 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.77
Marine
#042E60
ΔE00 6.39
Royal
#0C1793
ΔE00 7.79
Darkslateblue
#483D8B
ΔE00 8.02
Navy Blue
#1B2A4A
ΔE00 8.20
Marine Blue
#01386A
ΔE00 8.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212971 #716921
analogous
#215171 #212971 #412171
triadic
#212971 #712129 #297121
tetradic
#212971 #712151 #716921 #217141
square
#212971 #712151 #716921 #217141
split-complementary
#212971 #714121 #517121
monochromatic
#070918 #131842 #212971 #2F3AA0 #4451C8
Accessibility & contrast
On white
12.96
#212971 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#212971 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212971
12.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212971 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212971 | 1.00 | 12.96 | 1.62 | 12.96 |
| #FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #212971; /* rgb */ color: rgb(33, 41, 113); /* oklch */ color: oklch(32.3% 0.123 272.6);
Tailwind
colors: {
custom: {
50: '#68629a',
500: '#212971',
950: '#000000',
},
}SCSS
$custom: #212971; $custom-light: #68629a; $custom-dark: #000000;
JSON
{
"hex": "#212971",
"rgb": {
"r": 33,
"g": 41,
"b": 113
},
"hsl": {
"h": 234,
"s": 54.795,
"l": 28.627
},
"oklch": {
"l": 0.32308,
"c": 0.12317,
"h": 272.6
},
"luminance": 0.03101
}Semantic roles & 50–950 ramp
primary
#212971
secondary
#A59B49
accent
#CF4ADE
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E