#162C7E#162C7E
#162C7E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.141 H 266.7°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).
Color values
| HEX | #162C7E |
|---|---|
| RGB | rgb(22, 44, 126) |
| HSL | hsl(227, 70%, 29%) |
| HSV | hsv(227, 83%, 49%) |
| CMYK | cmyk(82.5%, 65.1%, 0%, 50.6%) |
| CIE-LAB | lab(21.86, 24.09, -48.68) |
| CIE-LCH | lch(21.86, 54.31, 296.33°) |
| OKLab | oklab(33.57% -0.0082 -0.1408) |
| OKLCH | oklch(33.57% 0.141 266.7) |
| XYZ | xyz(4.9961, 3.4777, 20.1426) |
| Luminance | 0.0348 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.85
Marine
#042E60
ΔE00 6.26
Royal
#0C1793
ΔE00 7.04
Sapphire (survey)
#2138AB
ΔE00 7.10
Marine Blue
#01386A
ΔE00 7.53
Darkslateblue
#483D8B
ΔE00 8.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#162C7E #7E6816
analogous
#16607E #162C7E #34167E
triadic
#162C7E #7E162C #2C7E16
tetradic
#162C7E #7E1660 #7E6816 #167E34
square
#162C7E #7E1660 #7E6816 #167E34
split-complementary
#162C7E #7E3416 #607E16
monochromatic
#05091A #0D1A4A #162C7E #1F3EB2 #3357DB
Accessibility & contrast
On white
12.38
#162C7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#162C7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #162C7E
12.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##162C7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##162C7E | 1.00 | 12.38 | 1.70 | 12.38 |
| #FFFFFF | 12.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #162c7e; /* rgb */ color: rgb(22, 44, 126); /* oklch */ color: oklch(33.6% 0.141 266.7);
Tailwind
colors: {
custom: {
50: '#6764a4',
500: '#162c7e',
950: '#000000',
},
}SCSS
$custom: #162c7e; $custom-light: #6764a4; $custom-dark: #000000;
JSON
{
"hex": "#162c7e",
"rgb": {
"r": 22,
"g": 44,
"b": 126
},
"hsl": {
"h": 227.308,
"s": 70.27,
"l": 29.02
},
"oklch": {
"l": 0.33567,
"c": 0.14109,
"h": 266.7
},
"luminance": 0.03478
}Semantic roles & 50–950 ramp
primary
#162C7E
secondary
#B39A3D
accent
#C73BED
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F