#172F7C#172F7C
#172F7C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.0% C 0.134 H 266.0°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).
Color values
| HEX | #172F7C |
|---|---|
| RGB | rgb(23, 47, 124) |
| HSL | hsl(226, 69%, 29%) |
| HSV | hsv(226, 81%, 49%) |
| CMYK | cmyk(81.5%, 62.1%, 0%, 51.4%) |
| CIE-LAB | lab(22.55, 21.27, -46.29) |
| CIE-LCH | lch(22.55, 50.94, 294.68°) |
| OKLab | oklab(34.03% -0.0093 -0.1338) |
| OKLCH | oklch(34.03% 0.134 266) |
| XYZ | xyz(5.0067, 3.6698, 19.5094) |
| Luminance | 0.0367 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.46
Marine Blue
#01386A
ΔE00 6.52
Midnight Blue
#191970
ΔE00 6.85
Sapphire (survey)
#2138AB
ΔE00 7.23
Darkish Blue
#014182
ΔE00 7.30
Darkslateblue
#483D8B
ΔE00 7.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172F7C #7C6417
analogous
#17627C #172F7C #32177C
triadic
#172F7C #7C172F #2F7C17
tetradic
#172F7C #7C1762 #7C6417 #177C32
square
#172F7C #7C1762 #7C6417 #177C32
split-complementary
#172F7C #7C3217 #627C17
monochromatic
#050A1A #0D1B48 #172F7C #2143B0 #345BD9
Accessibility & contrast
On white
12.11
#172F7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#172F7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172F7C
12.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172F7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172F7C | 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)
#003B7F
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #172f7c; /* rgb */ color: rgb(23, 47, 124); /* oklch */ color: oklch(34.0% 0.134 266.0);
Tailwind
colors: {
custom: {
50: '#6667a3',
500: '#172f7c',
950: '#000000',
},
}SCSS
$custom: #172f7c; $custom-light: #6667a3; $custom-dark: #000000;
JSON
{
"hex": "#172f7c",
"rgb": {
"r": 23,
"g": 47,
"b": 124
},
"hsl": {
"h": 225.743,
"s": 68.707,
"l": 28.824
},
"oklch": {
"l": 0.3403,
"c": 0.13412,
"h": 266
},
"luminance": 0.0367
}Semantic roles & 50–950 ramp
primary
#172F7C
secondary
#B1963E
accent
#C23CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F