#161F7F#161F7F
#161F7F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.158 H 269.4°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).
Color values
| HEX | #161F7F |
|---|---|
| RGB | rgb(22, 31, 127) |
| HSL | hsl(235, 70%, 29%) |
| HSV | hsv(235, 83%, 50%) |
| CMYK | cmyk(82.7%, 75.6%, 0%, 50.2%) |
| CIE-LAB | lab(18.72, 33.20, -54.47) |
| CIE-LCH | lch(18.72, 63.80, 301.36°) |
| OKLab | oklab(31.31% -0.0017 -0.1578) |
| OKLCH | oklch(31.31% 0.158 269.4) |
| XYZ | xyz(4.6503, 2.6823, 20.3472) |
| Luminance | 0.0268 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.66
Royal
#0C1793
ΔE00 3.66
Dark Royal Blue
#02066F
ΔE00 5.72
Darkblue
#00008B
ΔE00 6.03
Navy
#000080
ΔE00 6.05
Deep Blue
#040273
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#161F7F #7F7616
analogous
#16547F #161F7F #42167F
triadic
#161F7F #7F161F #1F7F16
tetradic
#161F7F #7F1654 #7F7616 #167F42
square
#161F7F #7F1654 #7F7616 #167F42
split-complementary
#161F7F #7F4216 #547F16
monochromatic
#05061A #0D124B #161F7F #1F2CB3 #3442DC
Accessibility & contrast
On white
13.67
#161F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#161F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #161F7F
13.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##161F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##161F7F | 1.00 | 13.67 | 1.54 | 13.67 |
| #FFFFFF | 13.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #161f7f; /* rgb */ color: rgb(22, 31, 127); /* oklch */ color: oklch(31.3% 0.158 269.4);
Tailwind
colors: {
custom: {
50: '#685ba5',
500: '#161f7f',
950: '#000000',
},
}SCSS
$custom: #161f7f; $custom-light: #685ba5; $custom-dark: #000000;
JSON
{
"hex": "#161f7f",
"rgb": {
"r": 22,
"g": 31,
"b": 127
},
"hsl": {
"h": 234.857,
"s": 70.47,
"l": 29.216
},
"oklch": {
"l": 0.31313,
"c": 0.15783,
"h": 269.4
},
"luminance": 0.02683
}Semantic roles & 50–950 ramp
primary
#161F7F
secondary
#B4AA3D
accent
#DE3BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F