#212477#212477
#212477 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.138 H 273.8°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).
Color values
| HEX | #212477 |
|---|---|
| RGB | rgb(33, 36, 119) |
| HSL | hsl(238, 57%, 30%) |
| HSV | hsv(238, 72%, 47%) |
| CMYK | cmyk(72.3%, 69.7%, 0%, 53.3%) |
| CIE-LAB | lab(19.71, 28.13, -47.73) |
| CIE-LCH | lch(19.71, 55.40, 300.51°) |
| OKLab | oklab(31.94% 0.0091 -0.1379) |
| OKLCH | oklch(31.94% 0.138 273.8) |
| XYZ | xyz(4.5867, 2.9166, 17.7704) |
| Luminance | 0.0292 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.99
Royal
#0C1793
ΔE00 5.73
Dark Royal Blue
#02066F
ΔE00 7.02
Darkblue (survey)
#030764
ΔE00 7.26
Deep Blue
#040273
ΔE00 7.60
Navy
#000080
ΔE00 7.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212477 #777421
analogous
#214F77 #212477 #492177
triadic
#212477 #772124 #247721
tetradic
#212477 #77214F #777421 #217749
square
#212477 #77214F #777421 #217749
split-complementary
#212477 #774921 #4F7721
monochromatic
#070718 #141647 #212477 #2E32A7 #474BCC
Accessibility & contrast
On white
13.26
#212477 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#212477 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212477
13.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212477 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212477 | 1.00 | 13.26 | 1.58 | 13.26 |
| #FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#002C75
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #212477; /* rgb */ color: rgb(33, 36, 119); /* oklch */ color: oklch(31.9% 0.138 273.8);
Tailwind
colors: {
custom: {
50: '#6a5f9f',
500: '#212477',
950: '#000000',
},
}SCSS
$custom: #212477; $custom-light: #6a5f9f; $custom-dark: #000000;
JSON
{
"hex": "#212477",
"rgb": {
"r": 33,
"g": 36,
"b": 119
},
"hsl": {
"h": 237.907,
"s": 56.579,
"l": 29.804
},
"oklch": {
"l": 0.3194,
"c": 0.1382,
"h": 273.8
},
"luminance": 0.02917
}Semantic roles & 50–950 ramp
primary
#212477
secondary
#AAA74A
accent
#DB48E0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E