#212177#212177
#212177 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.142 H 274.6°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).
Color values
| HEX | #212177 |
|---|---|
| RGB | rgb(33, 33, 119) |
| HSL | hsl(240, 57%, 30%) |
| HSV | hsv(240, 72%, 47%) |
| CMYK | cmyk(72.3%, 72.3%, 0%, 53.3%) |
| CIE-LAB | lab(18.98, 30.09, -48.92) |
| CIE-LCH | lch(18.98, 57.44, 301.60°) |
| OKLab | oklab(31.42% 0.0113 -0.1414) |
| OKLCH | oklch(31.42% 0.142 274.6) |
| XYZ | xyz(4.4997, 2.7425, 17.7414) |
| Luminance | 0.0274 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.22
Royal
#0C1793
ΔE00 5.18
Dark Royal Blue
#02066F
ΔE00 6.18
Darkblue (survey)
#030764
ΔE00 6.49
Deep Blue
#040273
ΔE00 6.73
Navy
#000080
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212177 #777721
analogous
#214C77 #212177 #4C2177
triadic
#212177 #772121 #217721
tetradic
#212177 #77214C #777721 #21774C
square
#212177 #77214C #777721 #21774C
split-complementary
#212177 #774C21 #4C7721
monochromatic
#070718 #141447 #212177 #2E2EA7 #4747CC
Accessibility & contrast
On white
13.56
#212177 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#212177 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212177
13.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212177 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212177 | 1.00 | 13.56 | 1.55 | 13.56 |
| #FFFFFF | 13.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002A75
Tritanopia (blue-blind)
#003849
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #212177; /* rgb */ color: rgb(33, 33, 119); /* oklch */ color: oklch(31.4% 0.142 274.6);
Tailwind
colors: {
custom: {
50: '#6a5d9f',
500: '#212177',
950: '#000000',
},
}SCSS
$custom: #212177; $custom-light: #6a5d9f; $custom-dark: #000000;
JSON
{
"hex": "#212177",
"rgb": {
"r": 33,
"g": 33,
"b": 119
},
"hsl": {
"h": 240,
"s": 56.579,
"l": 29.804
},
"oklch": {
"l": 0.31416,
"c": 0.14184,
"h": 274.6
},
"luminance": 0.02743
}Semantic roles & 50–950 ramp
primary
#212177
secondary
#AAAA4A
accent
#E048E0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E