#211787#211787
#211787 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.173 H 274.3°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).
Color values
| HEX | #211787 |
|---|---|
| RGB | rgb(33, 23, 135) |
| HSL | hsl(245, 71%, 31%) |
| HSV | hsv(245, 83%, 53%) |
| CMYK | cmyk(75.6%, 83%, 0%, 47.1%) |
| CIE-LAB | lab(18.73, 41.37, -59.49) |
| CIE-LCH | lch(18.73, 72.46, 304.81°) |
| OKLab | oklab(31.77% 0.013 -0.172) |
| OKLCH | oklch(31.77% 0.173 274.3) |
| XYZ | xyz(5.3053, 2.6849, 23.1556) |
| Luminance | 0.0268 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.07
Darkblue
#00008B
ΔE00 3.85
Midnight Blue
#191970
ΔE00 3.90
Navy
#000080
ΔE00 4.26
Indigo (survey)
#380282
ΔE00 4.35
Cobalt Blue
#030AA7
ΔE00 4.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#211787 #7D8717
analogous
#174587 #211787 #591787
triadic
#211787 #872117 #178721
tetradic
#211787 #871745 #7D8717 #178759
square
#211787 #871745 #7D8717 #178759
split-complementary
#211787 #875917 #458717
monochromatic
#07051E #140E53 #211787 #2E20BB #493BDE
Accessibility & contrast
On white
13.66
#211787 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#211787 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #211787
13.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##211787 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##211787 | 1.00 | 13.66 | 1.54 | 13.66 |
| #FFFFFF | 13.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002885
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #211787; /* rgb */ color: rgb(33, 23, 135); /* oklch */ color: oklch(31.8% 0.173 274.3);
Tailwind
colors: {
custom: {
50: '#6f58ab',
500: '#211787',
950: '#000000',
},
}SCSS
$custom: #211787; $custom-light: #6f58ab; $custom-dark: #000000;
JSON
{
"hex": "#211787",
"rgb": {
"r": 33,
"g": 23,
"b": 135
},
"hsl": {
"h": 245.357,
"s": 70.886,
"l": 30.98
},
"oklch": {
"l": 0.31772,
"c": 0.17254,
"h": 274.3
},
"luminance": 0.02685
}Semantic roles & 50–950 ramp
primary
#211787
secondary
#B0BB3F
accent
#EE3ADE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F