#171D8F#171D8F
#171D8F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.180 H 269.1°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).
Color values
| HEX | #171D8F |
|---|---|
| RGB | rgb(23, 29, 143) |
| HSL | hsl(237, 72%, 33%) |
| HSV | hsv(237, 84%, 56%) |
| CMYK | cmyk(83.9%, 79.7%, 0%, 43.9%) |
| CIE-LAB | lab(20.22, 40.16, -62.06) |
| CIE-LCH | lch(20.22, 73.92, 302.91°) |
| OKLab | oklab(32.93% -0.0027 -0.1798) |
| OKLCH | oklch(32.93% 0.18 269.1) |
| XYZ | xyz(5.7489, 3.0434, 26.2657) |
| Luminance | 0.0304 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.44
Cobalt Blue
#030AA7
ΔE00 4.31
Midnight Blue
#191970
ΔE00 4.75
Darkblue
#00008B
ΔE00 4.91
Royal Blue (survey)
#0504AA
ΔE00 4.92
Navy
#000080
ΔE00 5.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171D8F #8F8917
analogous
#17598F #171D8F #4D178F
triadic
#171D8F #8F171D #1D8F17
tetradic
#171D8F #8F1759 #8F8917 #178F4D
square
#171D8F #8F1759 #8F8917 #178F4D
split-complementary
#171D8F #8F4D17 #598F17
monochromatic
#060826 #0F125A #171D8F #1F28C4 #4048E0
Accessibility & contrast
On white
13.05
#171D8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#171D8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171D8F
13.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171D8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171D8F | 1.00 | 13.05 | 1.61 | 13.05 |
| #FFFFFF | 13.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #171d8f; /* rgb */ color: rgb(23, 29, 143); /* oklch */ color: oklch(32.9% 0.180 269.1);
Tailwind
colors: {
custom: {
50: '#6d5bb1',
500: '#171d8f',
950: '#000000',
},
}SCSS
$custom: #171d8f; $custom-light: #6d5bb1; $custom-dark: #000000;
JSON
{
"hex": "#171d8f",
"rgb": {
"r": 23,
"g": 29,
"b": 143
},
"hsl": {
"h": 237,
"s": 72.289,
"l": 32.549
},
"oklch": {
"l": 0.32931,
"c": 0.1798,
"h": 269.1
},
"luminance": 0.03044
}Semantic roles & 50–950 ramp
primary
#171D8F
secondary
#C1BA41
accent
#E639EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980