#161F8F#161F8F
#161F8F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.178 H 268.7°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).
Color values
| HEX | #161F8F |
|---|---|
| RGB | rgb(22, 31, 143) |
| HSL | hsl(236, 73%, 32%) |
| HSV | hsv(236, 85%, 56%) |
| CMYK | cmyk(84.6%, 78.3%, 0%, 43.9%) |
| CIE-LAB | lab(20.57, 38.97, -61.48) |
| CIE-LCH | lch(20.57, 72.78, 302.37°) |
| OKLab | oklab(33.17% -0.0042 -0.1781) |
| OKLCH | oklch(33.17% 0.178 268.7) |
| XYZ | xyz(5.7771, 3.1330, 26.2815) |
| Luminance | 0.0313 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.88
Cobalt Blue
#030AA7
ΔE00 4.66
Midnight Blue
#191970
ΔE00 4.80
Royal Blue (survey)
#0504AA
ΔE00 5.28
Darkblue
#00008B
ΔE00 5.38
Navy
#000080
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#161F8F #8F8616
analogous
#165C8F #161F8F #49168F
triadic
#161F8F #8F161F #1F8F16
tetradic
#161F8F #8F165C #8F8616 #168F49
square
#161F8F #8F165C #8F8616 #168F49
split-complementary
#161F8F #8F4916 #5C8F16
monochromatic
#060825 #0E145A #161F8F #1E2AC4 #3E4AE1
Accessibility & contrast
On white
12.91
#161F8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#161F8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #161F8F
12.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##161F8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##161F8F | 1.00 | 12.91 | 1.63 | 12.91 |
| #FFFFFF | 12.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #161f8f; /* rgb */ color: rgb(22, 31, 143); /* oklch */ color: oklch(33.2% 0.178 268.7);
Tailwind
colors: {
custom: {
50: '#6d5cb1',
500: '#161f8f',
950: '#000000',
},
}SCSS
$custom: #161f8f; $custom-light: #6d5cb1; $custom-dark: #000000;
JSON
{
"hex": "#161f8f",
"rgb": {
"r": 22,
"g": 31,
"b": 143
},
"hsl": {
"h": 235.537,
"s": 73.333,
"l": 32.353
},
"oklch": {
"l": 0.33167,
"c": 0.17819,
"h": 268.7
},
"luminance": 0.03134
}Semantic roles & 50–950 ramp
primary
#161F8F
secondary
#C1B83F
accent
#E238F0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980