#222F8B#222F8B
#222F8B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.152 H 270.3°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).
Color values
| HEX | #222F8B |
|---|---|
| RGB | rgb(34, 47, 139) |
| HSL | hsl(233, 61%, 34%) |
| HSV | hsv(233, 76%, 55%) |
| CMYK | cmyk(75.5%, 66.2%, 0%, 45.5%) |
| CIE-LAB | lab(24.44, 28.42, -52.59) |
| CIE-LCH | lch(24.44, 59.78, 298.39°) |
| OKLab | oklab(35.99% 0.0009 -0.152) |
| OKLCH | oklch(35.99% 0.152 270.3) |
| XYZ | xyz(6.3348, 4.2365, 24.9050) |
| Luminance | 0.0424 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.00
Royal
#0C1793
ΔE00 6.39
Darkslateblue
#483D8B
ΔE00 6.53
Blueberry
#464196
ΔE00 6.56
Midnight Blue
#191970
ΔE00 6.75
Marine
#042E60
ΔE00 8.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#222F8B #8B7E22
analogous
#22648B #222F8B #4A228B
triadic
#222F8B #8B222F #2F8B22
tetradic
#222F8B #8B2264 #8B7E22 #228B4A
square
#222F8B #8B2264 #8B7E22 #228B4A
split-complementary
#222F8B #8B4A22 #648B22
monochromatic
#0A0E29 #161E5A #222F8B #2E40BC #5363D5
Accessibility & contrast
On white
11.37
#222F8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#222F8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #222F8B
11.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##222F8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##222F8B | 1.00 | 11.37 | 1.85 | 11.37 |
| #FFFFFF | 11.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #222f8b; /* rgb */ color: rgb(34, 47, 139); /* oklch */ color: oklch(36.0% 0.152 270.3);
Tailwind
colors: {
custom: {
50: '#6e67ae',
500: '#222f8b',
950: '#000000',
},
}SCSS
$custom: #222f8b; $custom-light: #6e67ae; $custom-dark: #000000;
JSON
{
"hex": "#222f8b",
"rgb": {
"r": 34,
"g": 47,
"b": 139
},
"hsl": {
"h": 232.571,
"s": 60.694,
"l": 33.922
},
"oklch": {
"l": 0.35994,
"c": 0.15204,
"h": 270.3
},
"luminance": 0.04237
}Semantic roles & 50–950 ramp
primary
#222F8B
secondary
#B8AC50
accent
#D044E4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F