#172D7F#172D7F
#172D7F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.141 H 266.8°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).
Color values
| HEX | #172D7F |
|---|---|
| RGB | rgb(23, 45, 127) |
| HSL | hsl(227, 69%, 29%) |
| HSV | hsv(227, 82%, 50%) |
| CMYK | cmyk(81.9%, 64.6%, 0%, 50.2%) |
| CIE-LAB | lab(22.27, 23.90, -48.64) |
| CIE-LCH | lch(22.27, 54.20, 296.16°) |
| OKLab | oklab(33.91% -0.008 -0.1407) |
| OKLCH | oklch(33.91% 0.141 266.8) |
| XYZ | xyz(5.1212, 3.5906, 20.4977) |
| Luminance | 0.0359 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 6.13
Marine
#042E60
ΔE00 6.27
Sapphire (survey)
#2138AB
ΔE00 6.88
Royal
#0C1793
ΔE00 7.19
Marine Blue
#01386A
ΔE00 7.39
Darkslateblue
#483D8B
ΔE00 7.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172D7F #7F6917
analogous
#17617F #172D7F #35177F
triadic
#172D7F #7F172D #2D7F17
tetradic
#172D7F #7F1761 #7F6917 #177F35
square
#172D7F #7F1761 #7F6917 #177F35
split-complementary
#172D7F #7F3517 #617F17
monochromatic
#05091A #0E1B4B #172D7F #203FB3 #3659DB
Accessibility & contrast
On white
12.22
#172D7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#172D7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172D7F
12.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172D7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172D7F | 1.00 | 12.22 | 1.72 | 12.22 |
| #FFFFFF | 12.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #172d7f; /* rgb */ color: rgb(23, 45, 127); /* oklch */ color: oklch(33.9% 0.141 266.8);
Tailwind
colors: {
custom: {
50: '#6765a5',
500: '#172d7f',
950: '#000000',
},
}SCSS
$custom: #172d7f; $custom-light: #6765a5; $custom-dark: #000000;
JSON
{
"hex": "#172d7f",
"rgb": {
"r": 23,
"g": 45,
"b": 127
},
"hsl": {
"h": 227.308,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.33907,
"c": 0.14095,
"h": 266.8
},
"luminance": 0.03591
}Semantic roles & 50–950 ramp
primary
#172D7F
secondary
#B49B3E
accent
#C73CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F