#222D7F#222D7F
#222D7F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.138 H 271.2°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).
Color values
| HEX | #222D7F |
|---|---|
| RGB | rgb(34, 45, 127) |
| HSL | hsl(233, 58%, 32%) |
| HSV | hsv(233, 73%, 50%) |
| CMYK | cmyk(73.2%, 64.6%, 0%, 50.2%) |
| CIE-LAB | lab(22.82, 25.20, -47.72) |
| CIE-LCH | lch(22.82, 53.96, 297.84°) |
| OKLab | oklab(34.47% 0.003 -0.1378) |
| OKLCH | oklch(34.47% 0.138 271.2) |
| XYZ | xyz(5.4275, 3.7486, 20.5121) |
| Luminance | 0.0375 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.73
Sapphire (survey)
#2138AB
ΔE00 6.83
Darkslateblue
#483D8B
ΔE00 6.85
Royal
#0C1793
ΔE00 6.90
Marine
#042E60
ΔE00 7.14
Blueberry
#464196
ΔE00 7.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#222D7F #7F7422
analogous
#225C7F #222D7F #46227F
triadic
#222D7F #7F222D #2D7F22
tetradic
#222D7F #7F225C #7F7422 #227F46
square
#222D7F #7F225C #7F7422 #227F46
split-complementary
#222D7F #7F4622 #5C7F22
monochromatic
#080B1E #151C4F #222D7F #2F3EAF #4C5CCF
Accessibility & contrast
On white
12.00
#222D7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#222D7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #222D7F
12.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##222D7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##222D7F | 1.00 | 12.00 | 1.75 | 12.00 |
| #FFFFFF | 12.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #222d7f; /* rgb */ color: rgb(34, 45, 127); /* oklch */ color: oklch(34.5% 0.138 271.2);
Tailwind
colors: {
custom: {
50: '#6b65a5',
500: '#222d7f',
950: '#000000',
},
}SCSS
$custom: #222d7f; $custom-light: #6b65a5; $custom-dark: #000000;
JSON
{
"hex": "#222d7f",
"rgb": {
"r": 34,
"g": 45,
"b": 127
},
"hsl": {
"h": 232.903,
"s": 57.764,
"l": 31.569
},
"oklch": {
"l": 0.34467,
"c": 0.1378,
"h": 271.2
},
"luminance": 0.03749
}Semantic roles & 50–950 ramp
primary
#222D7F
secondary
#B2A54B
accent
#CF47E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F