#172D8F#172D8F
#172D8F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.163 H 267.0°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).
Color values
| HEX | #172D8F |
|---|---|
| RGB | rgb(23, 45, 143) |
| HSL | hsl(229, 72%, 33%) |
| HSV | hsv(229, 84%, 56%) |
| CMYK | cmyk(83.9%, 68.5%, 0%, 43.9%) |
| CIE-LAB | lab(23.81, 30.21, -56.13) |
| CIE-LCH | lch(23.81, 63.74, 298.29°) |
| OKLab | oklab(35.51% -0.0085 -0.1626) |
| OKLCH | oklch(35.51% 0.163 267) |
| XYZ | xyz(6.2479, 4.0414, 26.4320) |
| Luminance | 0.0404 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.81
Royal
#0C1793
ΔE00 5.74
Midnight Blue
#191970
ΔE00 6.74
Blueberry
#464196
ΔE00 7.42
Darkslateblue
#483D8B
ΔE00 7.57
Cobalt Blue
#030AA7
ΔE00 7.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172D8F #8F7917
analogous
#17698F #172D8F #3D178F
triadic
#172D8F #8F172D #2D8F17
tetradic
#172D8F #8F1769 #8F7917 #178F3D
square
#172D8F #8F1769 #8F7917 #178F3D
split-complementary
#172D8F #8F3D17 #698F17
monochromatic
#060C26 #0F1C5A #172D8F #1F3EC4 #405DE0
Accessibility & contrast
On white
11.61
#172D8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#172D8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172D8F
11.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172D8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172D8F | 1.00 | 11.61 | 1.81 | 11.61 |
| #FFFFFF | 11.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #172d8f; /* rgb */ color: rgb(23, 45, 143); /* oklch */ color: oklch(35.5% 0.163 267.0);
Tailwind
colors: {
custom: {
50: '#6c66b1',
500: '#172d8f',
950: '#000000',
},
}SCSS
$custom: #172d8f; $custom-light: #6c66b1; $custom-dark: #000000;
JSON
{
"hex": "#172d8f",
"rgb": {
"r": 23,
"g": 45,
"b": 143
},
"hsl": {
"h": 229,
"s": 72.289,
"l": 32.549
},
"oklch": {
"l": 0.35509,
"c": 0.16283,
"h": 267
},
"luminance": 0.04042
}Semantic roles & 50–950 ramp
primary
#172D8F
secondary
#C1A941
accent
#CE39EF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80