#162971#162971
#162971 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.126 H 267.2°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).
Color values
| HEX | #162971 |
|---|---|
| RGB | rgb(22, 41, 113) |
| HSL | hsl(227, 67%, 26%) |
| HSV | hsv(227, 81%, 44%) |
| CMYK | cmyk(80.5%, 63.7%, 0%, 55.7%) |
| CIE-LAB | lab(19.84, 20.94, -43.69) |
| CIE-LCH | lch(19.84, 48.45, 295.61°) |
| OKLab | oklab(31.69% -0.0062 -0.1263) |
| OKLCH | oklch(31.69% 0.126 267.2) |
| XYZ | xyz(4.1034, 2.9482, 15.9724) |
| Luminance | 0.0295 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.24
Midnight Blue
#191970
ΔE00 5.30
Marine Blue
#01386A
ΔE00 7.48
Navy Blue
#1B2A4A
ΔE00 7.89
Royal
#0C1793
ΔE00 8.03
Navy Blue (survey)
#001146
ΔE00 8.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#162971 #715E16
analogous
#165771 #162971 #311671
triadic
#162971 #711629 #297116
tetradic
#162971 #711657 #715E16 #167131
square
#162971 #711657 #715E16 #167131
split-complementary
#162971 #713116 #577116
monochromatic
#05091A #0C163E #162971 #203CA4 #2C4FD6
Accessibility & contrast
On white
13.21
#162971 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#162971 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #162971
13.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##162971 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##162971 | 1.00 | 13.21 | 1.59 | 13.21 |
| #FFFFFF | 13.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #162971; /* rgb */ color: rgb(22, 41, 113); /* oklch */ color: oklch(31.7% 0.126 267.2);
Tailwind
colors: {
custom: {
50: '#63629b',
500: '#162971',
950: '#000000',
},
}SCSS
$custom: #162971; $custom-light: #63629b; $custom-dark: #000000;
JSON
{
"hex": "#162971",
"rgb": {
"r": 22,
"g": 41,
"b": 113
},
"hsl": {
"h": 227.473,
"s": 67.407,
"l": 26.471
},
"oklch": {
"l": 0.31692,
"c": 0.12644,
"h": 267.2
},
"luminance": 0.02949
}Semantic roles & 50–950 ramp
primary
#162971
secondary
#A7913C
accent
#C63EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E