#172874#172874
#172874 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.8% C 0.132 H 268.0°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).
Color values
| HEX | #172874 |
|---|---|
| RGB | rgb(23, 40, 116) |
| HSL | hsl(229, 67%, 27%) |
| HSV | hsv(229, 80%, 45%) |
| CMYK | cmyk(80.2%, 65.5%, 0%, 54.5%) |
| CIE-LAB | lab(19.88, 22.98, -45.54) |
| CIE-LCH | lch(19.88, 51.01, 296.78°) |
| OKLab | oklab(31.83% -0.0046 -0.1317) |
| OKLCH | oklch(31.83% 0.132 268) |
| XYZ | xyz(4.2634, 2.9602, 16.8663) |
| Luminance | 0.0296 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.70
Marine
#042E60
ΔE00 5.97
Royal
#0C1793
ΔE00 7.27
Marine Blue
#01386A
ΔE00 8.07
Navy Blue
#1B2A4A
ΔE00 8.50
Dark Royal Blue
#02066F
ΔE00 8.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172874 #746317
analogous
#175774 #172874 #341774
triadic
#172874 #741728 #287417
tetradic
#172874 #741757 #746317 #177434
square
#172874 #741757 #746317 #177434
split-complementary
#172874 #743417 #577417
monochromatic
#05091A #0D1641 #172874 #213AA7 #304ED6
Accessibility & contrast
On white
13.19
#172874 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#172874 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172874
13.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172874 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172874 | 1.00 | 13.19 | 1.59 | 13.19 |
| #FFFFFF | 13.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#002C73
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #172874; /* rgb */ color: rgb(23, 40, 116); /* oklch */ color: oklch(31.8% 0.132 268.0);
Tailwind
colors: {
custom: {
50: '#65619d',
500: '#172874',
950: '#000000',
},
}SCSS
$custom: #172874; $custom-light: #65619d; $custom-dark: #000000;
JSON
{
"hex": "#172874",
"rgb": {
"r": 23,
"g": 40,
"b": 116
},
"hsl": {
"h": 229.032,
"s": 66.906,
"l": 27.255
},
"oklch": {
"l": 0.31827,
"c": 0.13178,
"h": 268
},
"luminance": 0.02961
}Semantic roles & 50–950 ramp
primary
#172874
secondary
#A9963D
accent
#CA3EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E