#172F8F#172F8F
#172F8F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.160 H 266.6°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).
Color values
| HEX | #172F8F |
|---|---|
| RGB | rgb(23, 47, 143) |
| HSL | hsl(228, 72%, 33%) |
| HSV | hsv(228, 84%, 56%) |
| CMYK | cmyk(83.9%, 67.1%, 0%, 43.9%) |
| CIE-LAB | lab(24.31, 28.86, -55.30) |
| CIE-LCH | lch(24.31, 62.38, 297.56°) |
| OKLab | oklab(35.88% -0.0095 -0.1602) |
| OKLCH | oklch(35.88% 0.16 266.6) |
| XYZ | xyz(6.3261, 4.1976, 26.4581) |
| Luminance | 0.0420 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.57
Royal
#0C1793
ΔE00 6.37
Blueberry
#464196
ΔE00 7.13
Midnight Blue
#191970
ΔE00 7.22
Darkslateblue
#483D8B
ΔE00 7.38
Marine
#042E60
ΔE00 8.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172F8F #8F7717
analogous
#176B8F #172F8F #3B178F
triadic
#172F8F #8F172F #2F8F17
tetradic
#172F8F #8F176B #8F7717 #178F3B
square
#172F8F #8F176B #8F7717 #178F3B
split-complementary
#172F8F #8F3B17 #6B8F17
monochromatic
#060C26 #0F1E5A #172F8F #1F40C4 #4060E0
Accessibility & contrast
On white
11.42
#172F8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#172F8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172F8F
11.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172F8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172F8F | 1.00 | 11.42 | 1.84 | 11.42 |
| #FFFFFF | 11.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #172f8f; /* rgb */ color: rgb(23, 47, 143); /* oklch */ color: oklch(35.9% 0.160 266.6);
Tailwind
colors: {
custom: {
50: '#6c67b1',
500: '#172f8f',
950: '#000000',
},
}SCSS
$custom: #172f8f; $custom-light: #6c67b1; $custom-dark: #000000;
JSON
{
"hex": "#172f8f",
"rgb": {
"r": 23,
"g": 47,
"b": 143
},
"hsl": {
"h": 228,
"s": 72.289,
"l": 32.549
},
"oklch": {
"l": 0.3588,
"c": 0.16045,
"h": 266.6
},
"luminance": 0.04198
}Semantic roles & 50–950 ramp
primary
#172F8F
secondary
#C1A741
accent
#CB39EF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80