#171F72#171F72
#171F72 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.140 H 270.4°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).
Color values
| HEX | #171F72 |
|---|---|
| RGB | rgb(23, 31, 114) |
| HSL | hsl(235, 66%, 27%) |
| HSV | hsv(235, 80%, 45%) |
| CMYK | cmyk(79.8%, 72.8%, 0%, 55.3%) |
| CIE-LAB | lab(17.35, 28.40, -48.41) |
| CIE-LCH | lch(17.35, 56.13, 300.40°) |
| OKLab | oklab(29.92% 0.0011 -0.1401) |
| OKLCH | oklch(29.92% 0.14 270.4) |
| XYZ | xyz(3.8796, 2.3766, 16.1706) |
| Luminance | 0.0238 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.80
Royal
#0C1793
ΔE00 5.68
Dark Royal Blue
#02066F
ΔE00 5.77
Darkblue (survey)
#030764
ΔE00 5.86
Deep Blue
#040273
ΔE00 6.47
Navy
#000080
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171F72 #726A17
analogous
#174D72 #171F72 #3D1772
triadic
#171F72 #72171F #1F7217
tetradic
#171F72 #72174D #726A17 #17723D
square
#171F72 #72174D #726A17 #17723D
split-complementary
#171F72 #723D17 #4D7217
monochromatic
#050719 #0D113F #171F72 #212DA5 #2E3DD5
Accessibility & contrast
On white
14.23
#171F72 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#171F72 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171F72
14.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171F72 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171F72 | 1.00 | 14.23 | 1.48 | 14.23 |
| #FFFFFF | 14.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003646
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #171f72; /* rgb */ color: rgb(23, 31, 114); /* oklch */ color: oklch(29.9% 0.140 270.4);
Tailwind
colors: {
custom: {
50: '#655b9b',
500: '#171f72',
950: '#000000',
},
}SCSS
$custom: #171f72; $custom-light: #655b9b; $custom-dark: #000000;
JSON
{
"hex": "#171f72",
"rgb": {
"r": 23,
"g": 31,
"b": 114
},
"hsl": {
"h": 234.725,
"s": 66.423,
"l": 26.863
},
"oklch": {
"l": 0.29915,
"c": 0.14014,
"h": 270.4
},
"luminance": 0.02377
}Semantic roles & 50–950 ramp
primary
#171F72
secondary
#A89E3D
accent
#DA3EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E