#162C8A#162C8A
#162C8A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.158 H 266.9°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).
Color values
| HEX | #162C8A |
|---|---|
| RGB | rgb(22, 44, 138) |
| HSL | hsl(229, 73%, 31%) |
| HSV | hsv(229, 84%, 54%) |
| CMYK | cmyk(84.1%, 68.1%, 0%, 45.9%) |
| CIE-LAB | lab(23.02, 28.86, -54.32) |
| CIE-LCH | lch(23.02, 61.51, 297.98°) |
| OKLab | oklab(34.77% -0.0086 -0.1573) |
| OKLCH | oklch(34.77% 0.158 266.9) |
| XYZ | xyz(5.8174, 3.8062, 24.4679) |
| Luminance | 0.0381 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.54
Royal
#0C1793
ΔE00 5.80
Midnight Blue
#191970
ΔE00 6.20
Darkslateblue
#483D8B
ΔE00 7.72
Blueberry
#464196
ΔE00 7.76
Marine
#042E60
ΔE00 7.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#162C8A #8A7416
analogous
#16668A #162C8A #3A168A
triadic
#162C8A #8A162C #2C8A16
tetradic
#162C8A #8A1666 #8A7416 #168A3A
square
#162C8A #8A1666 #8A7416 #168A3A
split-complementary
#162C8A #8A3A16 #668A16
monochromatic
#050A20 #0E1B55 #162C8A #1E3DBF #3B5AE0
Accessibility & contrast
On white
11.92
#162C8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#162C8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #162C8A
11.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##162C8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##162C8A | 1.00 | 11.92 | 1.76 | 11.92 |
| #FFFFFF | 11.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #162c8a; /* rgb */ color: rgb(22, 44, 138); /* oklch */ color: oklch(34.8% 0.158 266.9);
Tailwind
colors: {
custom: {
50: '#6a65ad',
500: '#162c8a',
950: '#000000',
},
}SCSS
$custom: #162c8a; $custom-light: #6a65ad; $custom-dark: #000000;
JSON
{
"hex": "#162c8a",
"rgb": {
"r": 22,
"g": 44,
"b": 138
},
"hsl": {
"h": 228.621,
"s": 72.5,
"l": 31.373
},
"oklch": {
"l": 0.34771,
"c": 0.15757,
"h": 266.9
},
"luminance": 0.03807
}Semantic roles & 50–950 ramp
primary
#162C8A
secondary
#BEA63E
accent
#CD39EF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F