#172C74#172C74
#172C74 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.127 H 266.7°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).
Color values
| HEX | #172C74 |
|---|---|
| RGB | rgb(23, 44, 116) |
| HSL | hsl(226, 67%, 27%) |
| HSV | hsv(226, 80%, 45%) |
| CMYK | cmyk(80.2%, 62.1%, 0%, 54.5%) |
| CIE-LAB | lab(21.00, 20.14, -43.73) |
| CIE-LCH | lch(21.00, 48.14, 294.73°) |
| OKLab | oklab(32.65% -0.0073 -0.1263) |
| OKLCH | oklch(32.65% 0.127 266.7) |
| XYZ | xyz(4.4053, 3.2440, 16.9136) |
| Luminance | 0.0324 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 4.92
Midnight Blue
#191970
ΔE00 6.13
Marine Blue
#01386A
ΔE00 6.77
Navy Blue
#1B2A4A
ΔE00 7.99
Darkish Blue
#014182
ΔE00 8.17
Royal
#0C1793
ΔE00 8.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172C74 #745F17
analogous
#175A74 #172C74 #311774
triadic
#172C74 #74172C #2C7417
tetradic
#172C74 #74175A #745F17 #177431
square
#172C74 #74175A #745F17 #177431
split-complementary
#172C74 #743117 #5A7417
monochromatic
#050A1A #0D1941 #172C74 #213FA7 #3055D6
Accessibility & contrast
On white
12.74
#172C74 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#172C74 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172C74
12.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172C74 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172C74 | 1.00 | 12.74 | 1.65 | 12.74 |
| #FFFFFF | 12.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#003E4B
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #172c74; /* rgb */ color: rgb(23, 44, 116); /* oklch */ color: oklch(32.7% 0.127 266.7);
Tailwind
colors: {
custom: {
50: '#64649d',
500: '#172c74',
950: '#000000',
},
}SCSS
$custom: #172c74; $custom-light: #64649d; $custom-dark: #000000;
JSON
{
"hex": "#172c74",
"rgb": {
"r": 23,
"g": 44,
"b": 116
},
"hsl": {
"h": 226.452,
"s": 66.906,
"l": 27.255
},
"oklch": {
"l": 0.32652,
"c": 0.12653,
"h": 266.7
},
"luminance": 0.03244
}Semantic roles & 50–950 ramp
primary
#172C74
secondary
#A9913D
accent
#C33EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E