#172F7E#172F7E
#172F7E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.137 H 266.1°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).
Color values
| HEX | #172F7E |
|---|---|
| RGB | rgb(23, 47, 126) |
| HSL | hsl(226, 69%, 29%) |
| HSV | hsv(226, 82%, 49%) |
| CMYK | cmyk(81.7%, 62.7%, 0%, 50.6%) |
| CIE-LAB | lab(22.73, 22.09, -47.26) |
| CIE-LCH | lch(22.73, 52.17, 295.05°) |
| OKLab | oklab(34.22% -0.0092 -0.1366) |
| OKLCH | oklch(34.22% 0.137 266.1) |
| XYZ | xyz(5.1344, 3.7210, 20.1822) |
| Luminance | 0.0372 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.76
Marine Blue
#01386A
ΔE00 6.71
Midnight Blue
#191970
ΔE00 6.81
Sapphire (survey)
#2138AB
ΔE00 6.93
Darkish Blue
#014182
ΔE00 7.37
Darkslateblue
#483D8B
ΔE00 7.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172F7E #7E6617
analogous
#17637E #172F7E #32177E
triadic
#172F7E #7E172F #2F7E17
tetradic
#172F7E #7E1763 #7E6617 #177E32
square
#172F7E #7E1763 #7E6617 #177E32
split-complementary
#172F7E #7E3217 #637E17
monochromatic
#050A1A #0E1C4A #172F7E #2042B2 #355CDA
Accessibility & contrast
On white
12.04
#172F7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#172F7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172F7E
12.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172F7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172F7E | 1.00 | 12.04 | 1.74 | 12.04 |
| #FFFFFF | 12.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #172f7e; /* rgb */ color: rgb(23, 47, 126); /* oklch */ color: oklch(34.2% 0.137 266.1);
Tailwind
colors: {
custom: {
50: '#6767a4',
500: '#172f7e',
950: '#000000',
},
}SCSS
$custom: #172f7e; $custom-light: #6767a4; $custom-dark: #000000;
JSON
{
"hex": "#172f7e",
"rgb": {
"r": 23,
"g": 47,
"b": 126
},
"hsl": {
"h": 226.019,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.34218,
"c": 0.13696,
"h": 266.1
},
"luminance": 0.03722
}Semantic roles & 50–950 ramp
primary
#172F7E
secondary
#B3983E
accent
#C33CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F