#171A7C#171A7C
#171A7C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.2% C 0.159 H 270.6°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).
Color values
| HEX | #171A7C |
|---|---|
| RGB | rgb(23, 26, 124) |
| HSL | hsl(238, 69%, 29%) |
| HSV | hsv(238, 81%, 49%) |
| CMYK | cmyk(81.5%, 79%, 0%, 51.4%) |
| CIE-LAB | lab(17.35, 35.24, -54.84) |
| CIE-LCH | lch(17.35, 65.19, 302.73°) |
| OKLab | oklab(30.25% 0.0018 -0.1588) |
| OKLCH | oklch(30.25% 0.159 270.6) |
| XYZ | xyz(4.3596, 2.3757, 19.2937) |
| Luminance | 0.0238 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.92
Royal
#0C1793
ΔE00 3.49
Dark Royal Blue
#02066F
ΔE00 4.43
Deep Blue
#040273
ΔE00 4.84
Navy
#000080
ΔE00 4.85
Darkblue
#00008B
ΔE00 5.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171A7C #7C7917
analogous
#174D7C #171A7C #47177C
triadic
#171A7C #7C171A #1A7C17
tetradic
#171A7C #7C174D #7C7917 #177C47
square
#171A7C #7C174D #7C7917 #177C47
split-complementary
#171A7C #7C4717 #4D7C17
monochromatic
#05051A #0D0F48 #171A7C #2125B0 #3439D9
Accessibility & contrast
On white
14.24
#171A7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#171A7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171A7C
14.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171A7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171A7C | 1.00 | 14.24 | 1.48 | 14.24 |
| #FFFFFF | 14.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #171a7c; /* rgb */ color: rgb(23, 26, 124); /* oklch */ color: oklch(30.2% 0.159 270.6);
Tailwind
colors: {
custom: {
50: '#6858a3',
500: '#171a7c',
950: '#000000',
},
}SCSS
$custom: #171a7c; $custom-light: #6858a3; $custom-dark: #000000;
JSON
{
"hex": "#171a7c",
"rgb": {
"r": 23,
"g": 26,
"b": 124
},
"hsl": {
"h": 238.218,
"s": 68.707,
"l": 28.824
},
"oklch": {
"l": 0.30246,
"c": 0.15883,
"h": 270.6
},
"luminance": 0.02376
}Semantic roles & 50–950 ramp
primary
#171A7C
secondary
#B1AD3E
accent
#E63CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F