#222871#222871
#222871 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.124 H 273.5°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).
Color values
| HEX | #222871 |
|---|---|
| RGB | rgb(34, 40, 113) |
| HSL | hsl(235, 54%, 29%) |
| HSV | hsv(235, 70%, 44%) |
| CMYK | cmyk(69.9%, 64.6%, 0%, 55.7%) |
| CIE-LAB | lab(20.24, 23.29, -43.00) |
| CIE-LCH | lch(20.24, 48.91, 298.44°) |
| OKLab | oklab(32.18% 0.0076 -0.124) |
| OKLCH | oklch(32.18% 0.124 273.5) |
| XYZ | xyz(4.3981, 3.0495, 15.9764) |
| Luminance | 0.0305 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.41
Marine
#042E60
ΔE00 6.79
Royal
#0C1793
ΔE00 7.54
Darkslateblue
#483D8B
ΔE00 8.05
Navy Blue
#1B2A4A
ΔE00 8.42
Darkblue (survey)
#030764
ΔE00 8.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#222871 #716B22
analogous
#225071 #222871 #442271
triadic
#222871 #712228 #287122
tetradic
#222871 #712250 #716B22 #227144
square
#222871 #712250 #716B22 #227144
split-complementary
#222871 #714422 #507122
monochromatic
#070818 #141742 #222871 #3039A0 #4650C7
Accessibility & contrast
On white
13.04
#222871 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#222871 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #222871
13.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##222871 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##222871 | 1.00 | 13.04 | 1.61 | 13.04 |
| #FFFFFF | 13.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #222871; /* rgb */ color: rgb(34, 40, 113); /* oklch */ color: oklch(32.2% 0.124 273.5);
Tailwind
colors: {
custom: {
50: '#68629a',
500: '#222871',
950: '#000000',
},
}SCSS
$custom: #222871; $custom-light: #68629a; $custom-dark: #000000;
JSON
{
"hex": "#222871",
"rgb": {
"r": 34,
"g": 40,
"b": 113
},
"hsl": {
"h": 235.443,
"s": 53.741,
"l": 28.824
},
"oklch": {
"l": 0.32176,
"c": 0.12421,
"h": 273.5
},
"luminance": 0.0305
}Semantic roles & 50–950 ramp
primary
#222871
secondary
#A49D4A
accent
#D24BDD
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E