#171786#171786
#171786 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.1% C 0.174 H 270.2°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).
Color values
| HEX | #171786 |
|---|---|
| RGB | rgb(23, 23, 134) |
| HSL | hsl(240, 71%, 31%) |
| HSV | hsv(240, 83%, 53%) |
| CMYK | cmyk(82.8%, 82.8%, 0%, 47.5%) |
| CIE-LAB | lab(17.99, 40.36, -60.12) |
| CIE-LCH | lch(17.99, 72.41, 303.88°) |
| OKLab | oklab(31.05% 0.0006 -0.1741) |
| OKLCH | oklch(31.05% 0.174 270.2) |
| XYZ | xyz(4.9614, 2.5156, 22.7737) |
| Luminance | 0.0252 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.87
Midnight Blue
#191970
ΔE00 3.58
Darkblue
#00008B
ΔE00 3.71
Navy
#000080
ΔE00 4.03
Dark Royal Blue
#02066F
ΔE00 4.66
Deep Blue
#040273
ΔE00 4.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171786 #868617
analogous
#174E86 #171786 #4E1786
triadic
#171786 #861717 #178617
tetradic
#171786 #86174E #868617 #17864E
square
#171786 #86174E #868617 #17864E
split-complementary
#171786 #864E17 #4E8617
monochromatic
#05051E #0E0E52 #171786 #2020BA #3A3ADD
Accessibility & contrast
On white
13.97
#171786 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#171786 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171786
13.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171786 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171786 | 1.00 | 13.97 | 1.50 | 13.97 |
| #FFFFFF | 13.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003289
Deuteranopia (green-blind)
#002684
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #171786; /* rgb */ color: rgb(23, 23, 134); /* oklch */ color: oklch(31.1% 0.174 270.2);
Tailwind
colors: {
custom: {
50: '#6c57ab',
500: '#171786',
950: '#000000',
},
}SCSS
$custom: #171786; $custom-light: #6c57ab; $custom-dark: #000000;
JSON
{
"hex": "#171786",
"rgb": {
"r": 23,
"g": 23,
"b": 134
},
"hsl": {
"h": 240,
"s": 70.701,
"l": 30.784
},
"oklch": {
"l": 0.31052,
"c": 0.17406,
"h": 270.2
},
"luminance": 0.02516
}Semantic roles & 50–950 ramp
primary
#171786
secondary
#BABA3F
accent
#ED3AED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F