#171C8F#171C8F
#171C8F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.181 H 269.2°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).
Color values
| HEX | #171C8F |
|---|---|
| RGB | rgb(23, 28, 143) |
| HSL | hsl(238, 72%, 33%) |
| HSV | hsv(238, 84%, 56%) |
| CMYK | cmyk(83.9%, 80.4%, 0%, 43.9%) |
| CIE-LAB | lab(20.02, 40.72, -62.38) |
| CIE-LCH | lch(20.02, 74.49, 303.13°) |
| OKLab | oklab(32.8% -0.0024 -0.1807) |
| OKLCH | oklch(32.8% 0.181 269.2) |
| XYZ | xyz(5.7248, 2.9952, 26.2577) |
| Luminance | 0.0300 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.25
Cobalt Blue
#030AA7
ΔE00 4.15
Darkblue
#00008B
ΔE00 4.68
Midnight Blue
#191970
ΔE00 4.74
Royal Blue (survey)
#0504AA
ΔE00 4.76
Navy
#000080
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171C8F #8F8A17
analogous
#17588F #171C8F #4E178F
triadic
#171C8F #8F171C #1C8F17
tetradic
#171C8F #8F1758 #8F8A17 #178F4E
square
#171C8F #8F1758 #8F8A17 #178F4E
split-complementary
#171C8F #8F4E17 #588F17
monochromatic
#060726 #0F125A #171C8F #1F26C4 #4047E0
Accessibility & contrast
On white
13.13
#171C8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#171C8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171C8F
13.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171C8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171C8F | 1.00 | 13.13 | 1.60 | 13.13 |
| #FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #171c8f; /* rgb */ color: rgb(23, 28, 143); /* oklch */ color: oklch(32.8% 0.181 269.2);
Tailwind
colors: {
custom: {
50: '#6e5ab1',
500: '#171c8f',
950: '#000000',
},
}SCSS
$custom: #171c8f; $custom-light: #6e5ab1; $custom-dark: #000000;
JSON
{
"hex": "#171c8f",
"rgb": {
"r": 23,
"g": 28,
"b": 143
},
"hsl": {
"h": 237.5,
"s": 72.289,
"l": 32.549
},
"oklch": {
"l": 0.32796,
"c": 0.18071,
"h": 269.2
},
"luminance": 0.02996
}Semantic roles & 50–950 ramp
primary
#171C8F
secondary
#C1BB41
accent
#E739EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980