#172F5F#172F5F
#172F5F is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.5% C 0.091 H 262.4°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).
Color values
| HEX | #172F5F |
|---|---|
| RGB | rgb(23, 47, 95) |
| HSL | hsl(220, 61%, 23%) |
| HSV | hsv(220, 76%, 37%) |
| CMYK | cmyk(75.8%, 50.5%, 0%, 62.7%) |
| CIE-LAB | lab(20.21, 9.24, -31.37) |
| CIE-LCH | lch(20.21, 32.70, 286.41°) |
| OKLab | oklab(31.52% -0.0119 -0.0899) |
| OKLCH | oklch(31.52% 0.091 262.4) |
| XYZ | xyz(3.4347, 3.0411, 11.2302) |
| Luminance | 0.0304 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 2.04
Navy Blue
#1B2A4A
ΔE00 4.37
Marine Blue
#01386A
ΔE00 4.77
Darkish Blue
#014182
ΔE00 7.67
Twilight Blue
#0A437A
ΔE00 7.87
Navy (survey)
#01153E
ΔE00 8.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172F5F #5F4717
analogous
#17535F #172F5F #23175F
triadic
#172F5F #5F172F #2F5F17
tetradic
#172F5F #5F1753 #5F4717 #175F23
square
#172F5F #5F1753 #5F4717 #175F23
split-complementary
#172F5F #5F2317 #535F17
monochromatic
#060C19 #0B172E #172F5F #234790 #2F60C2
Accessibility & contrast
On white
13.06
#172F5F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#172F5F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172F5F
13.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172F5F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172F5F | 1.00 | 13.06 | 1.61 | 13.06 |
| #FFFFFF | 13.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#163461
Deuteranopia (green-blind)
#052E5E
Tritanopia (blue-blind)
#003A42
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #172f5f; /* rgb */ color: rgb(23, 47, 95); /* oklch */ color: oklch(31.5% 0.091 262.4);
Tailwind
colors: {
custom: {
50: '#5f678d',
500: '#172f5f',
950: '#000000',
},
}SCSS
$custom: #172f5f; $custom-light: #5f678d; $custom-dark: #000000;
JSON
{
"hex": "#172f5f",
"rgb": {
"r": 23,
"g": 47,
"b": 95
},
"hsl": {
"h": 220,
"s": 61.017,
"l": 23.137
},
"oklch": {
"l": 0.31522,
"c": 0.09071,
"h": 262.4
},
"luminance": 0.03041
}Semantic roles & 50–950 ramp
primary
#172F5F
secondary
#96783C
accent
#AF44E4
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D