#212972#212972
#212972 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.125 H 272.5°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).
Color values
| HEX | #212972 |
|---|---|
| RGB | rgb(33, 41, 114) |
| HSL | hsl(234, 55%, 29%) |
| HSV | hsv(234, 71%, 45%) |
| CMYK | cmyk(71.1%, 64%, 0%, 55.3%) |
| CIE-LAB | lab(20.53, 22.83, -43.17) |
| CIE-LCH | lch(20.53, 48.84, 297.87°) |
| OKLab | oklab(32.4% 0.0055 -0.1245) |
| OKLCH | oklch(32.4% 0.125 272.5) |
| XYZ | xyz(4.4564, 3.1237, 16.2844) |
| Luminance | 0.0312 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.71
Marine
#042E60
ΔE00 6.49
Royal
#0C1793
ΔE00 7.63
Darkslateblue
#483D8B
ΔE00 7.96
Navy Blue
#1B2A4A
ΔE00 8.35
Marine Blue
#01386A
ΔE00 8.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212972 #726A21
analogous
#215272 #212972 #422172
triadic
#212972 #722129 #297221
tetradic
#212972 #722152 #726A21 #217242
square
#212972 #722152 #726A21 #217242
split-complementary
#212972 #724221 #527221
monochromatic
#070918 #131843 #212972 #2F3AA1 #4452C9
Accessibility & contrast
On white
12.92
#212972 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#212972 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212972
12.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212972 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212972 | 1.00 | 12.92 | 1.62 | 12.92 |
| #FFFFFF | 12.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#002E71
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #212972; /* rgb */ color: rgb(33, 41, 114); /* oklch */ color: oklch(32.4% 0.125 272.5);
Tailwind
colors: {
custom: {
50: '#68629b',
500: '#212972',
950: '#000000',
},
}SCSS
$custom: #212972; $custom-light: #68629b; $custom-dark: #000000;
JSON
{
"hex": "#212972",
"rgb": {
"r": 33,
"g": 41,
"b": 114
},
"hsl": {
"h": 234.074,
"s": 55.102,
"l": 28.824
},
"oklch": {
"l": 0.32401,
"c": 0.12462,
"h": 272.5
},
"luminance": 0.03124
}Semantic roles & 50–950 ramp
primary
#212972
secondary
#A59C49
accent
#D049DE
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E