#1D178C#1D178C
#1D178C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.180 H 272.0°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).
Color values
| HEX | #1D178C |
|---|---|
| RGB | rgb(29, 23, 140) |
| HSL | hsl(243, 72%, 32%) |
| HSV | hsv(243, 84%, 55%) |
| CMYK | cmyk(79.3%, 83.6%, 0%, 45.1%) |
| CIE-LAB | lab(19.08, 42.70, -62.06) |
| CIE-LCH | lch(19.08, 75.32, 304.53°) |
| OKLab | oklab(32.12% 0.0064 -0.1796) |
| OKLCH | oklch(32.12% 0.18 272) |
| XYZ | xyz(5.5451, 2.7668, 25.0477) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.31
Darkblue
#00008B
ΔE00 3.70
Cobalt Blue
#030AA7
ΔE00 3.94
Navy
#000080
ΔE00 4.36
Royal Blue (survey)
#0504AA
ΔE00 4.47
Midnight Blue
#191970
ΔE00 4.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D178C #868C17
analogous
#174C8C #1D178C #58178C
triadic
#1D178C #8C1D17 #178C1D
tetradic
#1D178C #8C174C #868C17 #178C58
square
#1D178C #8C174C #868C17 #178C58
split-complementary
#1D178C #8C5817 #4C8C17
monochromatic
#070623 #120E57 #1D178C #2820C1 #463EDF
Accessibility & contrast
On white
13.52
#1D178C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#1D178C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D178C
13.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D178C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D178C | 1.00 | 13.52 | 1.55 | 13.52 |
| #FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00288A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #1d178c; /* rgb */ color: rgb(29, 23, 140); /* oklch */ color: oklch(32.1% 0.180 272.0);
Tailwind
colors: {
custom: {
50: '#6f58af',
500: '#1d178c',
950: '#000000',
},
}SCSS
$custom: #1d178c; $custom-light: #6f58af; $custom-dark: #000000;
JSON
{
"hex": "#1d178c",
"rgb": {
"r": 29,
"g": 23,
"b": 140
},
"hsl": {
"h": 243.077,
"s": 71.779,
"l": 31.961
},
"oklch": {
"l": 0.32123,
"c": 0.17968,
"h": 272
},
"luminance": 0.02767
}Semantic roles & 50–950 ramp
primary
#1D178C
secondary
#B9BF3F
accent
#EF39E5
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880