#172E7F#172E7F
#172E7F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.140 H 266.5°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).
Color values
| HEX | #172E7F |
|---|---|
| RGB | rgb(23, 46, 127) |
| HSL | hsl(227, 69%, 29%) |
| HSV | hsv(227, 82%, 50%) |
| CMYK | cmyk(81.9%, 63.8%, 0%, 50.2%) |
| CIE-LAB | lab(22.54, 23.19, -48.20) |
| CIE-LCH | lch(22.54, 53.49, 295.70°) |
| OKLab | oklab(34.11% -0.0086 -0.1394) |
| OKLCH | oklch(34.11% 0.14 266.5) |
| XYZ | xyz(5.1598, 3.6679, 20.5106) |
| Luminance | 0.0367 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 6.08
Midnight Blue
#191970
ΔE00 6.46
Sapphire (survey)
#2138AB
ΔE00 6.82
Marine Blue
#01386A
ΔE00 7.10
Royal
#0C1793
ΔE00 7.51
Darkish Blue
#014182
ΔE00 7.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172E7F #7F6817
analogous
#17627F #172E7F #34177F
triadic
#172E7F #7F172E #2E7F17
tetradic
#172E7F #7F1762 #7F6817 #177F34
square
#172E7F #7F1762 #7F6817 #177F34
split-complementary
#172E7F #7F3417 #627F17
monochromatic
#05091A #0E1B4B #172E7F #2041B3 #365ADB
Accessibility & contrast
On white
12.11
#172E7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#172E7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172E7F
12.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172E7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172E7F | 1.00 | 12.11 | 1.73 | 12.11 |
| #FFFFFF | 12.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #172e7f; /* rgb */ color: rgb(23, 46, 127); /* oklch */ color: oklch(34.1% 0.140 266.5);
Tailwind
colors: {
custom: {
50: '#6766a5',
500: '#172e7f',
950: '#000000',
},
}SCSS
$custom: #172e7f; $custom-light: #6766a5; $custom-dark: #000000;
JSON
{
"hex": "#172e7f",
"rgb": {
"r": 23,
"g": 46,
"b": 127
},
"hsl": {
"h": 226.731,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.34109,
"c": 0.13968,
"h": 266.5
},
"luminance": 0.03668
}Semantic roles & 50–950 ramp
primary
#172E7F
secondary
#B49A3E
accent
#C53CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F