#1D158C#1D158C
#1D158C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.181 H 272.2°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).
Color values
| HEX | #1D158C |
|---|---|
| RGB | rgb(29, 21, 140) |
| HSL | hsl(244, 74%, 32%) |
| HSV | hsv(244, 85%, 55%) |
| CMYK | cmyk(79.3%, 85%, 0%, 45.1%) |
| CIE-LAB | lab(18.76, 43.65, -62.60) |
| CIE-LCH | lch(18.76, 76.31, 304.89°) |
| OKLab | oklab(31.9% 0.0069 -0.1811) |
| OKLCH | oklch(31.9% 0.181 272.2) |
| XYZ | xyz(5.5069, 2.6904, 25.0349) |
| Luminance | 0.0269 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.40
Darkblue
#00008B
ΔE00 3.34
Cobalt Blue
#030AA7
ΔE00 3.79
Navy
#000080
ΔE00 4.04
Royal Blue (survey)
#0504AA
ΔE00 4.29
Indigo (survey)
#380282
ΔE00 4.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D158C #848C15
analogous
#15498C #1D158C #59158C
triadic
#1D158C #8C1D15 #158C1D
tetradic
#1D158C #8C1549 #848C15 #158C59
square
#1D158C #8C1549 #848C15 #158C59
split-complementary
#1D158C #8C5915 #498C15
monochromatic
#070522 #120D57 #1D158C #281DC1 #453AE1
Accessibility & contrast
On white
13.65
#1D158C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#1D158C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D158C
13.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D158C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D158C | 1.00 | 13.65 | 1.54 | 13.65 |
| #FFFFFF | 13.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00288A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #1d158c; /* rgb */ color: rgb(29, 21, 140); /* oklch */ color: oklch(31.9% 0.181 272.2);
Tailwind
colors: {
custom: {
50: '#6f57af',
500: '#1d158c',
950: '#000000',
},
}SCSS
$custom: #1d158c; $custom-light: #6f57af; $custom-dark: #000000;
JSON
{
"hex": "#1d158c",
"rgb": {
"r": 29,
"g": 21,
"b": 140
},
"hsl": {
"h": 244.034,
"s": 73.913,
"l": 31.569
},
"oklch": {
"l": 0.31897,
"c": 0.18122,
"h": 272.2
},
"luminance": 0.02691
}Semantic roles & 50–950 ramp
primary
#1D158C
secondary
#B7C03D
accent
#F137E4
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880