#1D158F#1D158F
#1D158F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.185 H 271.9°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).
Color values
| HEX | #1D158F |
|---|---|
| RGB | rgb(29, 21, 143) |
| HSL | hsl(244, 74%, 32%) |
| HSV | hsv(244, 85%, 56%) |
| CMYK | cmyk(79.7%, 85.3%, 0%, 43.9%) |
| CIE-LAB | lab(19.14, 44.60, -63.83) |
| CIE-LCH | lch(19.14, 77.87, 304.94°) |
| OKLab | oklab(32.27% 0.0061 -0.1847) |
| OKLCH | oklch(32.27% 0.185 271.9) |
| XYZ | xyz(5.7311, 2.7801, 26.2158) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.18
Darkblue
#00008B
ΔE00 3.40
Cobalt Blue
#030AA7
ΔE00 3.40
Royal Blue (survey)
#0504AA
ΔE00 3.92
Navy
#000080
ΔE00 4.25
Indigo (survey)
#380282
ΔE00 4.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D158F #878F15
analogous
#154A8F #1D158F #5A158F
triadic
#1D158F #8F1D15 #158F1D
tetradic
#1D158F #8F154A #878F15 #158F5A
square
#1D158F #8F154A #878F15 #158F5A
split-complementary
#1D158F #8F5A15 #4A8F15
monochromatic
#070524 #120D5A #1D158F #281DC4 #473CE2
Accessibility & contrast
On white
13.49
#1D158F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#1D158F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D158F
13.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D158F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D158F | 1.00 | 13.49 | 1.56 | 13.49 |
| #FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00288D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #1d158f; /* rgb */ color: rgb(29, 21, 143); /* oklch */ color: oklch(32.3% 0.185 271.9);
Tailwind
colors: {
custom: {
50: '#7057b1',
500: '#1d158f',
950: '#000000',
},
}SCSS
$custom: #1d158f; $custom-light: #7057b1; $custom-dark: #000000;
JSON
{
"hex": "#1d158f",
"rgb": {
"r": 29,
"g": 21,
"b": 143
},
"hsl": {
"h": 243.934,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.3227,
"c": 0.18478,
"h": 271.9
},
"luminance": 0.02781
}Semantic roles & 50–950 ramp
primary
#1D158F
secondary
#B9C23E
accent
#F137E5
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880