#171A8F#171A8F
#171A8F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.182 H 269.4°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).
Color values
| HEX | #171A8F |
|---|---|
| RGB | rgb(23, 26, 143) |
| HSL | hsl(239, 72%, 33%) |
| HSV | hsv(239, 84%, 56%) |
| CMYK | cmyk(83.9%, 81.8%, 0%, 43.9%) |
| CIE-LAB | lab(19.65, 41.79, -62.99) |
| CIE-LCH | lch(19.65, 75.60, 303.56°) |
| OKLab | oklab(32.54% -0.0019 -0.1824) |
| OKLCH | oklch(32.54% 0.182 269.4) |
| XYZ | xyz(5.6790, 2.9034, 26.2424) |
| Luminance | 0.0290 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 0.92
Cobalt Blue
#030AA7
ΔE00 3.88
Darkblue
#00008B
ΔE00 4.25
Royal Blue (survey)
#0504AA
ΔE00 4.47
Midnight Blue
#191970
ΔE00 4.76
Navy
#000080
ΔE00 4.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171A8F #8F8C17
analogous
#17568F #171A8F #50178F
triadic
#171A8F #8F171A #1A8F17
tetradic
#171A8F #8F1756 #8F8C17 #178F50
square
#171A8F #8F1756 #8F8C17 #178F50
split-complementary
#171A8F #8F5017 #568F17
monochromatic
#060726 #0F105A #171A8F #1F24C4 #4044E0
Accessibility & contrast
On white
13.28
#171A8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#171A8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171A8F
13.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171A8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171A8F | 1.00 | 13.28 | 1.58 | 13.28 |
| #FFFFFF | 13.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #171a8f; /* rgb */ color: rgb(23, 26, 143); /* oklch */ color: oklch(32.5% 0.182 269.4);
Tailwind
colors: {
custom: {
50: '#6e59b1',
500: '#171a8f',
950: '#000000',
},
}SCSS
$custom: #171a8f; $custom-light: #6e59b1; $custom-dark: #000000;
JSON
{
"hex": "#171a8f",
"rgb": {
"r": 23,
"g": 26,
"b": 143
},
"hsl": {
"h": 238.5,
"s": 72.289,
"l": 32.549
},
"oklch": {
"l": 0.32536,
"c": 0.18245,
"h": 269.4
},
"luminance": 0.02904
}Semantic roles & 50–950 ramp
primary
#171A8F
secondary
#C1BE41
accent
#EA39EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980