#1D318C#1D318C
#1D318C is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.2% C 0.152 H 268.0°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).
Color values
| HEX | #1D318C |
|---|---|
| RGB | rgb(29, 49, 140) |
| HSL | hsl(229, 66%, 33%) |
| HSV | hsv(229, 79%, 55%) |
| CMYK | cmyk(79.3%, 65%, 0%, 45.1%) |
| CIE-LAB | lab(24.80, 26.89, -52.63) |
| CIE-LCH | lch(24.80, 59.10, 297.06°) |
| OKLab | oklab(36.22% -0.0054 -0.1522) |
| OKLCH | oklch(36.22% 0.152 268) |
| XYZ | xyz(6.3370, 4.3506, 25.3116) |
| Luminance | 0.0435 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.72
Blueberry
#464196
ΔE00 6.60
Darkslateblue
#483D8B
ΔE00 6.80
Royal
#0C1793
ΔE00 7.06
Midnight Blue
#191970
ΔE00 7.44
Darkish Blue
#014182
ΔE00 7.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D318C #8C781D
analogous
#1D688C #1D318C #401D8C
triadic
#1D318C #8C1D31 #318C1D
tetradic
#1D318C #8C1D68 #8C781D #1D8C40
square
#1D318C #8C1D68 #8C781D #1D8C40
split-complementary
#1D318C #8C401D #688C1D
monochromatic
#080E27 #121F59 #1D318C #2843BF #4A64D9
Accessibility & contrast
On white
11.23
#1D318C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#1D318C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D318C
11.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D318C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D318C | 1.00 | 11.23 | 1.87 | 11.23 |
| #FFFFFF | 11.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00368A
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #1d318c; /* rgb */ color: rgb(29, 49, 140); /* oklch */ color: oklch(36.2% 0.152 268.0);
Tailwind
colors: {
custom: {
50: '#6c69ae',
500: '#1d318c',
950: '#000000',
},
}SCSS
$custom: #1d318c; $custom-light: #6c69ae; $custom-dark: #000000;
JSON
{
"hex": "#1d318c",
"rgb": {
"r": 29,
"g": 49,
"b": 140
},
"hsl": {
"h": 229.189,
"s": 65.68,
"l": 33.137
},
"oklch": {
"l": 0.36218,
"c": 0.15234,
"h": 268
},
"luminance": 0.04351
}Semantic roles & 50–950 ramp
primary
#1D318C
secondary
#BCA749
accent
#CA3FE9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F