#162B7E#162B7E
#162B7E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.142 H 266.9°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).
Color values
| HEX | #162B7E |
|---|---|
| RGB | rgb(22, 43, 126) |
| HSL | hsl(228, 70%, 29%) |
| HSV | hsv(228, 83%, 49%) |
| CMYK | cmyk(82.5%, 65.9%, 0%, 50.6%) |
| CIE-LAB | lab(21.59, 24.79, -49.12) |
| CIE-LCH | lch(21.59, 55.02, 296.78°) |
| OKLab | oklab(33.37% -0.0076 -0.1421) |
| OKLCH | oklch(33.37% 0.142 266.9) |
| XYZ | xyz(4.9593, 3.4041, 20.1303) |
| Luminance | 0.0340 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.53
Marine
#042E60
ΔE00 6.48
Royal
#0C1793
ΔE00 6.74
Sapphire (survey)
#2138AB
ΔE00 7.18
Marine Blue
#01386A
ΔE00 7.82
Darkslateblue
#483D8B
ΔE00 8.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#162B7E #7E6916
analogous
#165F7E #162B7E #35167E
triadic
#162B7E #7E162B #2B7E16
tetradic
#162B7E #7E165F #7E6916 #167E35
square
#162B7E #7E165F #7E6916 #167E35
split-complementary
#162B7E #7E3516 #5F7E16
monochromatic
#05091A #0D194A #162B7E #1F3DB2 #3355DB
Accessibility & contrast
On white
12.49
#162B7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#162B7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #162B7E
12.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##162B7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##162B7E | 1.00 | 12.49 | 1.68 | 12.49 |
| #FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #162b7e; /* rgb */ color: rgb(22, 43, 126); /* oklch */ color: oklch(33.4% 0.142 266.9);
Tailwind
colors: {
custom: {
50: '#6764a4',
500: '#162b7e',
950: '#000000',
},
}SCSS
$custom: #162b7e; $custom-light: #6764a4; $custom-dark: #000000;
JSON
{
"hex": "#162b7e",
"rgb": {
"r": 22,
"g": 43,
"b": 126
},
"hsl": {
"h": 227.885,
"s": 70.27,
"l": 29.02
},
"oklch": {
"l": 0.33368,
"c": 0.14235,
"h": 266.9
},
"luminance": 0.03405
}Semantic roles & 50–950 ramp
primary
#162B7E
secondary
#B39B3D
accent
#C93BED
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F