#171789#171789
#171789 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.178 H 270.0°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).
Color values
| HEX | #171789 |
|---|---|
| RGB | rgb(23, 23, 137) |
| HSL | hsl(240, 71%, 31%) |
| HSV | hsv(240, 83%, 54%) |
| CMYK | cmyk(83.2%, 83.2%, 0%, 46.3%) |
| CIE-LAB | lab(18.37, 41.36, -61.38) |
| CIE-LCH | lch(18.37, 74.01, 303.97°) |
| OKLab | oklab(31.42% 0 -0.1777) |
| OKLCH | oklch(31.42% 0.178 270) |
| XYZ | xyz(5.1736, 2.6005, 23.8913) |
| Luminance | 0.0260 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.45
Darkblue
#00008B
ΔE00 3.63
Midnight Blue
#191970
ΔE00 4.01
Navy
#000080
ΔE00 4.12
Cobalt Blue
#030AA7
ΔE00 4.33
Royal Blue (survey)
#0504AA
ΔE00 4.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171789 #898917
analogous
#175089 #171789 #501789
triadic
#171789 #891717 #178917
tetradic
#171789 #891750 #898917 #178950
square
#171789 #891750 #898917 #178950
split-complementary
#171789 #895017 #508917
monochromatic
#050520 #0E0E55 #171789 #2020BD #3C3CDE
Accessibility & contrast
On white
13.81
#171789 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#171789 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171789
13.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171789 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171789 | 1.00 | 13.81 | 1.52 | 13.81 |
| #FFFFFF | 13.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002787
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #171789; /* rgb */ color: rgb(23, 23, 137); /* oklch */ color: oklch(31.4% 0.178 270.0);
Tailwind
colors: {
custom: {
50: '#6c57ad',
500: '#171789',
950: '#000000',
},
}SCSS
$custom: #171789; $custom-light: #6c57ad; $custom-dark: #000000;
JSON
{
"hex": "#171789",
"rgb": {
"r": 23,
"g": 23,
"b": 137
},
"hsl": {
"h": 240,
"s": 71.25,
"l": 31.373
},
"oklch": {
"l": 0.31424,
"c": 0.17771,
"h": 270
},
"luminance": 0.02601
}Semantic roles & 50–950 ramp
primary
#171789
secondary
#BDBD3F
accent
#EE3AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F