#212C77#212C77
#212C77 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.5% C 0.128 H 271.3°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).
Color values
| HEX | #212C77 |
|---|---|
| RGB | rgb(33, 44, 119) |
| HSL | hsl(232, 57%, 30%) |
| HSV | hsv(232, 72%, 47%) |
| CMYK | cmyk(72.3%, 63%, 0%, 53.3%) |
| CIE-LAB | lab(21.79, 22.67, -44.33) |
| CIE-LCH | lch(21.79, 49.79, 297.08°) |
| OKLab | oklab(33.46% 0.0029 -0.1279) |
| OKLCH | oklch(33.46% 0.128 271.3) |
| XYZ | xyz(4.8565, 3.4561, 17.8603) |
| Luminance | 0.0346 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.51
Marine
#042E60
ΔE00 6.29
Darkslateblue
#483D8B
ΔE00 7.38
Royal
#0C1793
ΔE00 7.67
Marine Blue
#01386A
ΔE00 7.99
Sapphire (survey)
#2138AB
ΔE00 8.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212C77 #776C21
analogous
#215777 #212C77 #412177
triadic
#212C77 #77212C #2C7721
tetradic
#212C77 #772157 #776C21 #217741
square
#212C77 #772157 #776C21 #217741
split-complementary
#212C77 #774121 #577721
monochromatic
#070918 #141A47 #212C77 #2E3EA7 #4758CC
Accessibility & contrast
On white
12.42
#212C77 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#212C77 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212C77
12.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212C77 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212C77 | 1.00 | 12.42 | 1.69 | 12.42 |
| #FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #212c77; /* rgb */ color: rgb(33, 44, 119); /* oklch */ color: oklch(33.5% 0.128 271.3);
Tailwind
colors: {
custom: {
50: '#69659f',
500: '#212c77',
950: '#000000',
},
}SCSS
$custom: #212c77; $custom-light: #69659f; $custom-dark: #000000;
JSON
{
"hex": "#212c77",
"rgb": {
"r": 33,
"g": 44,
"b": 119
},
"hsl": {
"h": 232.326,
"s": 56.579,
"l": 29.804
},
"oklch": {
"l": 0.33464,
"c": 0.12791,
"h": 271.3
},
"luminance": 0.03457
}Semantic roles & 50–950 ramp
primary
#212C77
secondary
#AA9E4A
accent
#CC48E0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E