#1D178F#1D178F
#1D178F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.183 H 271.8°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).
Color values
| HEX | #1D178F |
|---|---|
| RGB | rgb(29, 23, 143) |
| HSL | hsl(243, 72%, 33%) |
| HSV | hsv(243, 84%, 56%) |
| CMYK | cmyk(79.7%, 83.9%, 0%, 43.9%) |
| CIE-LAB | lab(19.46, 43.66, -63.30) |
| CIE-LCH | lch(19.46, 76.90, 304.59°) |
| OKLab | oklab(32.49% 0.0056 -0.1832) |
| OKLCH | oklch(32.49% 0.183 271.8) |
| XYZ | xyz(5.7693, 2.8565, 26.2286) |
| Luminance | 0.0286 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.08
Cobalt Blue
#030AA7
ΔE00 3.56
Darkblue
#00008B
ΔE00 3.74
Royal Blue (survey)
#0504AA
ΔE00 4.10
Navy
#000080
ΔE00 4.54
Indigo (survey)
#380282
ΔE00 4.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D178F #898F17
analogous
#174D8F #1D178F #59178F
triadic
#1D178F #8F1D17 #178F1D
tetradic
#1D178F #8F174D #898F17 #178F59
square
#1D178F #8F174D #898F17 #178F59
split-complementary
#1D178F #8F5917 #4D8F17
monochromatic
#080626 #120F5A #1D178F #281FC4 #4840E0
Accessibility & contrast
On white
13.36
#1D178F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#1D178F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D178F
13.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D178F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D178F | 1.00 | 13.36 | 1.57 | 13.36 |
| #FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1d178f; /* rgb */ color: rgb(29, 23, 143); /* oklch */ color: oklch(32.5% 0.183 271.8);
Tailwind
colors: {
custom: {
50: '#7058b1',
500: '#1d178f',
950: '#000000',
},
}SCSS
$custom: #1d178f; $custom-light: #7058b1; $custom-dark: #000000;
JSON
{
"hex": "#1d178f",
"rgb": {
"r": 29,
"g": 23,
"b": 143
},
"hsl": {
"h": 243,
"s": 72.289,
"l": 32.549
},
"oklch": {
"l": 0.32491,
"c": 0.18327,
"h": 271.8
},
"luminance": 0.02857
}Semantic roles & 50–950 ramp
primary
#1D178F
secondary
#BAC141
accent
#EF39E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880