#212277#212277
#212277 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.141 H 274.3°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).
Color values
| HEX | #212277 |
|---|---|
| RGB | rgb(33, 34, 119) |
| HSL | hsl(239, 57%, 30%) |
| HSV | hsv(239, 72%, 47%) |
| CMYK | cmyk(72.3%, 71.4%, 0%, 53.3%) |
| CIE-LAB | lab(19.22, 29.45, -48.53) |
| CIE-LCH | lch(19.22, 56.77, 301.25°) |
| OKLab | oklab(31.59% 0.0106 -0.1402) |
| OKLCH | oklch(31.59% 0.141 274.3) |
| XYZ | xyz(4.5279, 2.7989, 17.7508) |
| Luminance | 0.0280 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.46
Royal
#0C1793
ΔE00 5.35
Dark Royal Blue
#02066F
ΔE00 6.45
Darkblue (survey)
#030764
ΔE00 6.74
Deep Blue
#040273
ΔE00 7.02
Navy
#000080
ΔE00 7.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212277 #777621
analogous
#214D77 #212277 #4B2177
triadic
#212277 #772122 #227721
tetradic
#212277 #77214D #777621 #21774B
square
#212277 #77214D #777621 #21774B
split-complementary
#212277 #774B21 #4D7721
monochromatic
#070718 #141447 #212277 #2E30A7 #4748CC
Accessibility & contrast
On white
13.46
#212277 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#212277 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212277
13.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212277 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212277 | 1.00 | 13.46 | 1.56 | 13.46 |
| #FFFFFF | 13.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#003949
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #212277; /* rgb */ color: rgb(33, 34, 119); /* oklch */ color: oklch(31.6% 0.141 274.3);
Tailwind
colors: {
custom: {
50: '#6a5d9f',
500: '#212277',
950: '#000000',
},
}SCSS
$custom: #212277; $custom-light: #6a5d9f; $custom-dark: #000000;
JSON
{
"hex": "#212277",
"rgb": {
"r": 33,
"g": 34,
"b": 119
},
"hsl": {
"h": 239.302,
"s": 56.579,
"l": 29.804
},
"oklch": {
"l": 0.31588,
"c": 0.14064,
"h": 274.3
},
"luminance": 0.02799
}Semantic roles & 50–950 ramp
primary
#212277
secondary
#AAA94A
accent
#DE48E0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E