#162D8E#162D8E
#162D8E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.162 H 266.7°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).
Color values
| HEX | #162D8E |
|---|---|
| RGB | rgb(22, 45, 142) |
| HSL | hsl(229, 73%, 32%) |
| HSV | hsv(229, 85%, 56%) |
| CMYK | cmyk(84.5%, 68.3%, 0%, 44.3%) |
| CIE-LAB | lab(23.67, 29.74, -55.74) |
| CIE-LCH | lch(23.67, 63.17, 298.08°) |
| OKLab | oklab(35.37% -0.0093 -0.1615) |
| OKLCH | oklch(35.37% 0.162 266.7) |
| XYZ | xyz(6.1500, 3.9996, 26.0338) |
| Luminance | 0.0400 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.94
Royal
#0C1793
ΔE00 5.82
Midnight Blue
#191970
ΔE00 6.69
Blueberry
#464196
ΔE00 7.49
Darkslateblue
#483D8B
ΔE00 7.62
Cobalt Blue
#030AA7
ΔE00 8.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#162D8E #8E7716
analogous
#16698E #162D8E #3B168E
triadic
#162D8E #8E162D #2D8E16
tetradic
#162D8E #8E1669 #8E7716 #168E3B
square
#162D8E #8E1669 #8E7716 #168E3B
split-complementary
#162D8E #8E3B16 #698E16
monochromatic
#060B24 #0E1C59 #162D8E #1E3EC3 #3D5DE1
Accessibility & contrast
On white
11.67
#162D8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#162D8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #162D8E
11.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##162D8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##162D8E | 1.00 | 11.67 | 1.80 | 11.67 |
| #FFFFFF | 11.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #162d8e; /* rgb */ color: rgb(22, 45, 142); /* oklch */ color: oklch(35.4% 0.162 266.7);
Tailwind
colors: {
custom: {
50: '#6b66b0',
500: '#162d8e',
950: '#000000',
},
}SCSS
$custom: #162d8e; $custom-light: #6b66b0; $custom-dark: #000000;
JSON
{
"hex": "#162d8e",
"rgb": {
"r": 22,
"g": 45,
"b": 142
},
"hsl": {
"h": 228.5,
"s": 73.171,
"l": 32.157
},
"oklch": {
"l": 0.35367,
"c": 0.16175,
"h": 266.7
},
"luminance": 0.04
}Semantic roles & 50–950 ramp
primary
#162D8E
secondary
#C1A83F
accent
#CD38F0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80