#171F8B#171F8B
#171F8B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.173 H 269.2°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).
Color values
| HEX | #171F8B |
|---|---|
| RGB | rgb(23, 31, 139) |
| HSL | hsl(236, 72%, 32%) |
| HSV | hsv(236, 83%, 55%) |
| CMYK | cmyk(83.5%, 77.7%, 0%, 45.5%) |
| CIE-LAB | lab(20.15, 37.61, -59.68) |
| CIE-LCH | lch(20.15, 70.55, 302.22°) |
| OKLab | oklab(32.74% -0.0026 -0.1729) |
| OKLCH | oklch(32.74% 0.173 269.2) |
| XYZ | xyz(5.5019, 3.0256, 24.7151) |
| Luminance | 0.0303 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.18
Midnight Blue
#191970
ΔE00 4.24
Cobalt Blue
#030AA7
ΔE00 5.11
Darkblue
#00008B
ΔE00 5.42
Royal Blue (survey)
#0504AA
ΔE00 5.73
Navy
#000080
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171F8B #8B8317
analogous
#17598B #171F8B #49178B
triadic
#171F8B #8B171F #1F8B17
tetradic
#171F8B #8B1759 #8B8317 #178B49
square
#171F8B #8B1759 #8B8317 #178B49
split-complementary
#171F8B #8B4917 #598B17
monochromatic
#060822 #0E1356 #171F8B #202BC0 #3D49DF
Accessibility & contrast
On white
13.08
#171F8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#171F8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171F8B
13.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171F8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171F8B | 1.00 | 13.08 | 1.61 | 13.08 |
| #FFFFFF | 13.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002B89
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #171f8b; /* rgb */ color: rgb(23, 31, 139); /* oklch */ color: oklch(32.7% 0.173 269.2);
Tailwind
colors: {
custom: {
50: '#6c5cae',
500: '#171f8b',
950: '#000000',
},
}SCSS
$custom: #171f8b; $custom-light: #6c5cae; $custom-dark: #000000;
JSON
{
"hex": "#171f8b",
"rgb": {
"r": 23,
"g": 31,
"b": 139
},
"hsl": {
"h": 235.862,
"s": 71.605,
"l": 31.765
},
"oklch": {
"l": 0.32743,
"c": 0.17293,
"h": 269.2
},
"luminance": 0.03026
}Semantic roles & 50–950 ramp
primary
#171F8B
secondary
#BFB63F
accent
#E239EE
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F