#171B8E#171B8E
#171B8E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.180 H 269.4°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).
Color values
| HEX | #171B8E |
|---|---|
| RGB | rgb(23, 27, 142) |
| HSL | hsl(238, 72%, 32%) |
| HSV | hsv(238, 84%, 56%) |
| CMYK | cmyk(83.8%, 81%, 0%, 44.3%) |
| CIE-LAB | lab(19.71, 40.92, -62.27) |
| CIE-LCH | lch(19.71, 74.51, 303.31°) |
| OKLab | oklab(32.54% -0.002 -0.1804) |
| OKLCH | oklch(32.54% 0.18 269.4) |
| XYZ | xyz(5.6261, 2.9184, 25.8527) |
| Luminance | 0.0292 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.15
Cobalt Blue
#030AA7
ΔE00 4.13
Darkblue
#00008B
ΔE00 4.45
Midnight Blue
#191970
ΔE00 4.60
Royal Blue (survey)
#0504AA
ΔE00 4.73
Navy
#000080
ΔE00 5.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171B8E #8E8A17
analogous
#17578E #171B8E #4E178E
triadic
#171B8E #8E171B #1B8E17
tetradic
#171B8E #8E1757 #8E8A17 #178E4E
square
#171B8E #8E1757 #8E8A17 #178E4E
split-complementary
#171B8E #8E4E17 #578E17
monochromatic
#060725 #0E1159 #171B8E #2025C3 #3F45E0
Accessibility & contrast
On white
13.26
#171B8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#171B8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171B8E
13.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171B8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171B8E | 1.00 | 13.26 | 1.58 | 13.26 |
| #FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #171b8e; /* rgb */ color: rgb(23, 27, 142); /* oklch */ color: oklch(32.5% 0.180 269.4);
Tailwind
colors: {
custom: {
50: '#6d5ab0',
500: '#171b8e',
950: '#000000',
},
}SCSS
$custom: #171b8e; $custom-light: #6d5ab0; $custom-dark: #000000;
JSON
{
"hex": "#171b8e",
"rgb": {
"r": 23,
"g": 27,
"b": 142
},
"hsl": {
"h": 237.983,
"s": 72.121,
"l": 32.353
},
"oklch": {
"l": 0.32543,
"c": 0.18037,
"h": 269.4
},
"luminance": 0.02919
}Semantic roles & 50–950 ramp
primary
#171B8E
secondary
#C0BC40
accent
#E939EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980