#172171#172171
#172171 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.2% C 0.136 H 270.0°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).
Color values
| HEX | #172171 |
|---|---|
| RGB | rgb(23, 33, 113) |
| HSL | hsl(233, 66%, 27%) |
| HSV | hsv(233, 80%, 44%) |
| CMYK | cmyk(79.6%, 70.8%, 0%, 55.7%) |
| CIE-LAB | lab(17.74, 26.66, -47.12) |
| CIE-LCH | lch(17.74, 54.14, 299.50°) |
| OKLab | oklab(30.17% 0 -0.1364) |
| OKLCH | oklch(30.17% 0.136 270) |
| XYZ | xyz(3.8768, 2.4617, 15.8904) |
| Luminance | 0.0246 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.48
Royal
#0C1793
ΔE00 6.19
Darkblue (survey)
#030764
ΔE00 6.44
Dark Royal Blue
#02066F
ΔE00 6.44
Deep Blue
#040273
ΔE00 7.16
Navy
#000080
ΔE00 7.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172171 #716717
analogous
#174E71 #172171 #3A1771
triadic
#172171 #711721 #217117
tetradic
#172171 #71174E #716717 #17713A
square
#172171 #71174E #716717 #17713A
split-complementary
#172171 #713A17 #4E7117
monochromatic
#050719 #0D123E #172171 #2130A4 #2E40D4
Accessibility & contrast
On white
14.07
#172171 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#172171 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172171
14.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172171 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172171 | 1.00 | 14.07 | 1.49 | 14.07 |
| #FFFFFF | 14.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #172171; /* rgb */ color: rgb(23, 33, 113); /* oklch */ color: oklch(30.2% 0.136 270.0);
Tailwind
colors: {
custom: {
50: '#655c9b',
500: '#172171',
950: '#000000',
},
}SCSS
$custom: #172171; $custom-light: #655c9b; $custom-dark: #000000;
JSON
{
"hex": "#172171",
"rgb": {
"r": 23,
"g": 33,
"b": 113
},
"hsl": {
"h": 233.333,
"s": 66.176,
"l": 26.667
},
"oklch": {
"l": 0.30168,
"c": 0.13636,
"h": 270
},
"luminance": 0.02462
}Semantic roles & 50–950 ramp
primary
#172171
secondary
#A79B3D
accent
#D63FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E