#221878#221878
#221878 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.153 H 276.8°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).
Color values
| HEX | #221878 |
|---|---|
| RGB | rgb(34, 24, 120) |
| HSL | hsl(246, 67%, 28%) |
| HSV | hsv(246, 80%, 47%) |
| CMYK | cmyk(71.7%, 80%, 0%, 52.9%) |
| CIE-LAB | lab(17.22, 36.00, -52.46) |
| CIE-LCH | lch(17.22, 63.63, 304.46°) |
| OKLab | oklab(30.22% 0.018 -0.1516) |
| OKLCH | oklch(30.22% 0.153 276.8) |
| XYZ | xyz(4.3754, 2.3490, 17.9885) |
| Luminance | 0.0235 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.81
Dark Royal Blue
#02066F
ΔE00 4.17
Royal
#0C1793
ΔE00 4.21
Deep Blue
#040273
ΔE00 4.52
Navy
#000080
ΔE00 4.75
Darkblue (survey)
#030764
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#221878 #6E7818
analogous
#183E78 #221878 #521878
triadic
#221878 #782218 #187822
tetradic
#221878 #78183E #6E7818 #187852
square
#221878 #78183E #6E7818 #187852
split-complementary
#221878 #785218 #3E7818
monochromatic
#07051A #140E45 #221878 #3022AB #4534D6
Accessibility & contrast
On white
14.29
#221878 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#221878 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #221878
14.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##221878 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##221878 | 1.00 | 14.29 | 1.47 | 14.29 |
| #FFFFFF | 14.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002676
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #221878; /* rgb */ color: rgb(34, 24, 120); /* oklch */ color: oklch(30.2% 0.153 276.8);
Tailwind
colors: {
custom: {
50: '#6b57a0',
500: '#221878',
950: '#000000',
},
}SCSS
$custom: #221878; $custom-light: #6b57a0; $custom-dark: #000000;
JSON
{
"hex": "#221878",
"rgb": {
"r": 34,
"g": 24,
"b": 120
},
"hsl": {
"h": 246.25,
"s": 66.667,
"l": 28.235
},
"oklch": {
"l": 0.30217,
"c": 0.15269,
"h": 276.8
},
"luminance": 0.02349
}Semantic roles & 50–950 ramp
primary
#221878
secondary
#A1AD3F
accent
#EA3ED8
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F