#173F7F#173F7F
#173F7F is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.8% C 0.117 H 259.6°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).
Color values
| HEX | #173F7F |
|---|---|
| RGB | rgb(23, 63, 127) |
| HSL | hsl(217, 69%, 29%) |
| HSV | hsv(217, 82%, 50%) |
| CMYK | cmyk(81.9%, 50.4%, 0%, 50.2%) |
| CIE-LAB | lab(27.49, 11.20, -40.17) |
| CIE-LCH | lch(27.49, 41.70, 285.58°) |
| OKLab | oklab(37.85% -0.0212 -0.1155) |
| OKLCH | oklch(37.85% 0.117 259.6) |
| XYZ | xyz(5.9602, 5.2688, 20.7774) |
| Luminance | 0.0527 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkish Blue
#014182
ΔE00 1.95
Twilight Blue
#0A437A
ΔE00 2.86
Cobalt (survey)
#1E488F
ΔE00 3.31
Marine Blue
#01386A
ΔE00 3.83
Prussian Blue
#004577
ΔE00 4.55
Cobalt
#0047AB
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#173F7F #7F5717
analogous
#17737F #173F7F #23177F
triadic
#173F7F #7F173F #3F7F17
tetradic
#173F7F #7F1773 #7F5717 #177F23
square
#173F7F #7F1773 #7F5717 #177F23
split-complementary
#173F7F #7F2317 #737F17
monochromatic
#050D1A #0E254B #173F7F #2059B3 #3675DB
Accessibility & contrast
On white
10.22
#173F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#173F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #173F7F
10.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##173F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##173F7F | 1.00 | 10.22 | 2.05 | 10.22 |
| #FFFFFF | 10.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1A4681
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #173f7f; /* rgb */ color: rgb(23, 63, 127); /* oklch */ color: oklch(37.8% 0.117 259.6);
Tailwind
colors: {
custom: {
50: '#6673a5',
500: '#173f7f',
950: '#000000',
},
}SCSS
$custom: #173f7f; $custom-light: #6673a5; $custom-dark: #000000;
JSON
{
"hex": "#173f7f",
"rgb": {
"r": 23,
"g": 63,
"b": 127
},
"hsl": {
"h": 216.923,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.37846,
"c": 0.11742,
"h": 259.6
},
"luminance": 0.05269
}Semantic roles & 50–950 ramp
primary
#173F7F
secondary
#B4863E
accent
#A83CEC
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07080F
muted
#7A7B7F