#162D8F#162D8F
#162D8F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.163 H 266.7°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).
Color values
| HEX | #162D8F |
|---|---|
| RGB | rgb(22, 45, 143) |
| HSL | hsl(229, 73%, 32%) |
| HSV | hsv(229, 85%, 56%) |
| CMYK | cmyk(84.6%, 68.5%, 0%, 43.9%) |
| CIE-LAB | lab(23.77, 30.13, -56.19) |
| CIE-LCH | lch(23.77, 63.76, 298.20°) |
| OKLab | oklab(35.47% -0.0093 -0.1628) |
| OKLCH | oklch(35.47% 0.163 266.7) |
| XYZ | xyz(6.2255, 4.0298, 26.4310) |
| Luminance | 0.0403 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.82
Royal
#0C1793
ΔE00 5.76
Midnight Blue
#191970
ΔE00 6.76
Blueberry
#464196
ΔE00 7.47
Darkslateblue
#483D8B
ΔE00 7.62
Cobalt Blue
#030AA7
ΔE00 8.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#162D8F #8F7816
analogous
#166A8F #162D8F #3C168F
triadic
#162D8F #8F162D #2D8F16
tetradic
#162D8F #8F166A #8F7816 #168F3C
square
#162D8F #8F166A #8F7816 #168F3C
split-complementary
#162D8F #8F3C16 #6A8F16
monochromatic
#060C25 #0E1C5A #162D8F #1E3EC4 #3E5DE1
Accessibility & contrast
On white
11.63
#162D8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#162D8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #162D8F
11.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##162D8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##162D8F | 1.00 | 11.63 | 1.81 | 11.63 |
| #FFFFFF | 11.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #162d8f; /* rgb */ color: rgb(22, 45, 143); /* oklch */ color: oklch(35.5% 0.163 266.7);
Tailwind
colors: {
custom: {
50: '#6c66b1',
500: '#162d8f',
950: '#000000',
},
}SCSS
$custom: #162d8f; $custom-light: #6c66b1; $custom-dark: #000000;
JSON
{
"hex": "#162d8f",
"rgb": {
"r": 22,
"g": 45,
"b": 143
},
"hsl": {
"h": 228.595,
"s": 73.333,
"l": 32.353
},
"oklch": {
"l": 0.3547,
"c": 0.16309,
"h": 266.7
},
"luminance": 0.04031
}Semantic roles & 50–950 ramp
primary
#162D8F
secondary
#C1A93F
accent
#CD38F0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80