#221787#221787
#221787 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.172 H 274.8°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).
Color values
| HEX | #221787 |
|---|---|
| RGB | rgb(34, 23, 135) |
| HSL | hsl(246, 71%, 31%) |
| HSV | hsv(246, 83%, 53%) |
| CMYK | cmyk(74.8%, 83%, 0%, 47.1%) |
| CIE-LAB | lab(18.81, 41.45, -59.37) |
| CIE-LCH | lch(18.81, 72.40, 304.92°) |
| OKLab | oklab(31.84% 0.0144 -0.1717) |
| OKLCH | oklch(31.84% 0.172 274.8) |
| XYZ | xyz(5.3378, 2.7016, 23.1571) |
| Luminance | 0.0270 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.13
Darkblue
#00008B
ΔE00 3.88
Midnight Blue
#191970
ΔE00 3.93
Indigo (survey)
#380282
ΔE00 4.27
Navy
#000080
ΔE00 4.29
Cobalt Blue
#030AA7
ΔE00 4.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#221787 #7C8717
analogous
#174487 #221787 #5A1787
triadic
#221787 #872217 #178722
tetradic
#221787 #871744 #7C8717 #17875A
square
#221787 #871744 #7C8717 #17875A
split-complementary
#221787 #875A17 #448717
monochromatic
#08051E #150E53 #221787 #2F20BB #4B3BDE
Accessibility & contrast
On white
13.63
#221787 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#221787 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #221787
13.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##221787 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##221787 | 1.00 | 13.63 | 1.54 | 13.63 |
| #FFFFFF | 13.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002985
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #221787; /* rgb */ color: rgb(34, 23, 135); /* oklch */ color: oklch(31.8% 0.172 274.8);
Tailwind
colors: {
custom: {
50: '#6f58ab',
500: '#221787',
950: '#000000',
},
}SCSS
$custom: #221787; $custom-light: #6f58ab; $custom-dark: #000000;
JSON
{
"hex": "#221787",
"rgb": {
"r": 34,
"g": 23,
"b": 135
},
"hsl": {
"h": 245.893,
"s": 70.886,
"l": 30.98
},
"oklch": {
"l": 0.31841,
"c": 0.17228,
"h": 274.8
},
"luminance": 0.02702
}Semantic roles & 50–950 ramp
primary
#221787
secondary
#AFBB3F
accent
#EE3ADC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F