#222971#222971
#222971 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.123 H 273.1°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).
Color values
| HEX | #222971 |
|---|---|
| RGB | rgb(34, 41, 113) |
| HSL | hsl(235, 54%, 29%) |
| HSV | hsv(235, 70%, 44%) |
| CMYK | cmyk(69.9%, 63.7%, 0%, 55.7%) |
| CIE-LAB | lab(20.51, 22.60, -42.57) |
| CIE-LCH | lch(20.51, 48.19, 297.97°) |
| OKLab | oklab(32.37% 0.0068 -0.1227) |
| OKLCH | oklch(32.37% 0.123 273.1) |
| XYZ | xyz(4.4323, 3.1178, 15.9878) |
| Luminance | 0.0312 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.74
Marine
#042E60
ΔE00 6.52
Royal
#0C1793
ΔE00 7.78
Darkslateblue
#483D8B
ΔE00 7.94
Navy Blue
#1B2A4A
ΔE00 8.25
Marine Blue
#01386A
ΔE00 8.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#222971 #716A22
analogous
#225171 #222971 #432271
triadic
#222971 #712229 #297122
tetradic
#222971 #712251 #716A22 #227143
square
#222971 #712251 #716A22 #227143
split-complementary
#222971 #714322 #517122
monochromatic
#070918 #141842 #222971 #303AA0 #4652C7
Accessibility & contrast
On white
12.93
#222971 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#222971 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #222971
12.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##222971 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##222971 | 1.00 | 12.93 | 1.62 | 12.93 |
| #FFFFFF | 12.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #222971; /* rgb */ color: rgb(34, 41, 113); /* oklch */ color: oklch(32.4% 0.123 273.1);
Tailwind
colors: {
custom: {
50: '#68629a',
500: '#222971',
950: '#000000',
},
}SCSS
$custom: #222971; $custom-light: #68629a; $custom-dark: #000000;
JSON
{
"hex": "#222971",
"rgb": {
"r": 34,
"g": 41,
"b": 113
},
"hsl": {
"h": 234.684,
"s": 53.741,
"l": 28.824
},
"oklch": {
"l": 0.32374,
"c": 0.12288,
"h": 273.1
},
"luminance": 0.03118
}Semantic roles & 50–950 ramp
primary
#222971
secondary
#A49C4A
accent
#D04BDD
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E