#172F7F#172F7F
#172F7F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.138 H 266.2°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).
Color values
| HEX | #172F7F |
|---|---|
| RGB | rgb(23, 47, 127) |
| HSL | hsl(226, 69%, 29%) |
| HSV | hsv(226, 82%, 50%) |
| CMYK | cmyk(81.9%, 63%, 0%, 50.2%) |
| CIE-LAB | lab(22.82, 22.49, -47.75) |
| CIE-LCH | lch(22.82, 52.78, 295.22°) |
| OKLab | oklab(34.31% -0.0092 -0.1381) |
| OKLCH | oklch(34.31% 0.138 266.2) |
| XYZ | xyz(5.1993, 3.7469, 20.5238) |
| Luminance | 0.0375 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.91
Sapphire (survey)
#2138AB
ΔE00 6.78
Midnight Blue
#191970
ΔE00 6.80
Marine Blue
#01386A
ΔE00 6.81
Darkish Blue
#014182
ΔE00 7.41
Darkslateblue
#483D8B
ΔE00 7.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172F7F #7F6717
analogous
#17637F #172F7F #33177F
triadic
#172F7F #7F172F #2F7F17
tetradic
#172F7F #7F1763 #7F6717 #177F33
square
#172F7F #7F1763 #7F6717 #177F33
split-complementary
#172F7F #7F3317 #637F17
monochromatic
#050A1A #0E1C4B #172F7F #2042B3 #365CDB
Accessibility & contrast
On white
12.00
#172F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#172F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172F7F
12.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172F7F | 1.00 | 12.00 | 1.75 | 12.00 |
| #FFFFFF | 12.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #172f7f; /* rgb */ color: rgb(23, 47, 127); /* oklch */ color: oklch(34.3% 0.138 266.2);
Tailwind
colors: {
custom: {
50: '#6767a5',
500: '#172f7f',
950: '#000000',
},
}SCSS
$custom: #172f7f; $custom-light: #6767a5; $custom-dark: #000000;
JSON
{
"hex": "#172f7f",
"rgb": {
"r": 23,
"g": 47,
"b": 127
},
"hsl": {
"h": 226.154,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.34313,
"c": 0.13839,
"h": 266.2
},
"luminance": 0.03747
}Semantic roles & 50–950 ramp
primary
#172F7F
secondary
#B4983E
accent
#C33CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F