#172F52#172F52
#172F52 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.6% C 0.070 H 257.9°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).
Color values
| HEX | #172F52 |
|---|---|
| RGB | rgb(23, 47, 82) |
| HSL | hsl(216, 56%, 21%) |
| HSV | hsv(216, 72%, 32%) |
| CMYK | cmyk(72%, 42.7%, 0%, 67.8%) |
| CIE-LAB | lab(19.33, 3.84, -24.15) |
| CIE-LCH | lch(19.33, 24.45, 279.03°) |
| OKLab | oklab(30.56% -0.0148 -0.0687) |
| OKLCH | oklch(30.56% 0.07 257.9) |
| XYZ | xyz(2.8923, 2.8241, 8.3737) |
| Luminance | 0.0282 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy Blue
#1B2A4A
ΔE00 2.72
Marine
#042E60
ΔE00 3.18
Marine Blue
#01386A
ΔE00 5.09
Twilight Blue
#0A437A
ΔE00 8.30
Navy (survey)
#01153E
ΔE00 8.53
Darkish Blue
#014182
ΔE00 8.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172F52 #523A17
analogous
#174C52 #172F52 #1C1752
triadic
#172F52 #52172F #2F5217
tetradic
#172F52 #52174C #523A17 #17521C
square
#172F52 #52174C #523A17 #17521C
split-complementary
#172F52 #521C17 #4C5217
monochromatic
#070E18 #0A1422 #172F52 #244A82 #3266B2
Accessibility & contrast
On white
13.42
#172F52 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#172F52 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172F52
13.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172F52 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172F52 | 1.00 | 13.42 | 1.56 | 13.42 |
| #FFFFFF | 13.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F3253
Deuteranopia (green-blind)
#172C51
Tritanopia (blue-blind)
#00373C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #172f52; /* rgb */ color: rgb(23, 47, 82); /* oklch */ color: oklch(30.6% 0.070 257.9);
Tailwind
colors: {
custom: {
50: '#5b6783',
500: '#172f52',
950: '#000000',
},
}SCSS
$custom: #172f52; $custom-light: #5b6783; $custom-dark: #000000;
JSON
{
"hex": "#172f52",
"rgb": {
"r": 23,
"g": 47,
"b": 82
},
"hsl": {
"h": 215.593,
"s": 56.19,
"l": 20.588
},
"oklch": {
"l": 0.30556,
"c": 0.07028,
"h": 257.9
},
"luminance": 0.02824
}Semantic roles & 50–950 ramp
primary
#172F52
secondary
#896A3C
accent
#A248DF
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060A
muted
#797A7C