#171F77#171F77
#171F77 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.147 H 270.2°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).
Color values
| HEX | #171F77 |
|---|---|
| RGB | rgb(23, 31, 119) |
| HSL | hsl(235, 68%, 28%) |
| HSV | hsv(235, 81%, 47%) |
| CMYK | cmyk(80.7%, 73.9%, 0%, 53.3%) |
| CIE-LAB | lab(17.89, 30.30, -50.74) |
| CIE-LCH | lch(17.89, 59.10, 300.84°) |
| OKLab | oklab(30.46% 0.0004 -0.1469) |
| OKLCH | oklch(30.46% 0.147 270.2) |
| XYZ | xyz(4.1720, 2.4936, 17.7106) |
| Luminance | 0.0249 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.88
Royal
#0C1793
ΔE00 4.87
Dark Royal Blue
#02066F
ΔE00 5.63
Darkblue (survey)
#030764
ΔE00 5.97
Deep Blue
#040273
ΔE00 6.23
Navy
#000080
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171F77 #776F17
analogous
#174F77 #171F77 #3F1777
triadic
#171F77 #77171F #1F7717
tetradic
#171F77 #77174F #776F17 #17773F
square
#171F77 #77174F #776F17 #17773F
split-complementary
#171F77 #773F17 #4F7717
monochromatic
#05071A #0D1244 #171F77 #212CAA #313FD7
Accessibility & contrast
On white
14.01
#171F77 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#171F77 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171F77
14.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171F77 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171F77 | 1.00 | 14.01 | 1.50 | 14.01 |
| #FFFFFF | 14.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002775
Tritanopia (blue-blind)
#003848
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #171f77; /* rgb */ color: rgb(23, 31, 119); /* oklch */ color: oklch(30.5% 0.147 270.2);
Tailwind
colors: {
custom: {
50: '#665b9f',
500: '#171f77',
950: '#000000',
},
}SCSS
$custom: #171f77; $custom-light: #665b9f; $custom-dark: #000000;
JSON
{
"hex": "#171f77",
"rgb": {
"r": 23,
"g": 31,
"b": 119
},
"hsl": {
"h": 235,
"s": 67.606,
"l": 27.843
},
"oklch": {
"l": 0.30465,
"c": 0.14694,
"h": 270.2
},
"luminance": 0.02494
}Semantic roles & 50–950 ramp
primary
#171F77
secondary
#ACA33E
accent
#DC3DEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040F
muted
#7A797E