#1D318D#1D318D
#1D318D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.154 H 268.0°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).
Color values
| HEX | #1D318D |
|---|---|
| RGB | rgb(29, 49, 141) |
| HSL | hsl(229, 66%, 33%) |
| HSV | hsv(229, 79%, 55%) |
| CMYK | cmyk(79.4%, 65.2%, 0%, 44.7%) |
| CIE-LAB | lab(24.89, 27.28, -53.10) |
| CIE-LCH | lch(24.89, 59.70, 297.19°) |
| OKLab | oklab(36.32% -0.0054 -0.1536) |
| OKLCH | oklch(36.32% 0.154 268) |
| XYZ | xyz(6.4111, 4.3802, 25.7017) |
| Luminance | 0.0438 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.58
Blueberry
#464196
ΔE00 6.57
Darkslateblue
#483D8B
ΔE00 6.80
Royal
#0C1793
ΔE00 6.99
Midnight Blue
#191970
ΔE00 7.49
Darkish Blue
#014182
ΔE00 7.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D318D #8D791D
analogous
#1D698D #1D318D #411D8D
triadic
#1D318D #8D1D31 #318D1D
tetradic
#1D318D #8D1D69 #8D791D #1D8D41
square
#1D318D #8D1D69 #8D791D #1D8D41
split-complementary
#1D318D #8D411D #698D1D
monochromatic
#080E27 #131F5A #1D318D #2743C0 #4B64DA
Accessibility & contrast
On white
11.19
#1D318D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#1D318D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D318D
11.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D318D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D318D | 1.00 | 11.19 | 1.88 | 11.19 |
| #FFFFFF | 11.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #1d318d; /* rgb */ color: rgb(29, 49, 141); /* oklch */ color: oklch(36.3% 0.154 268.0);
Tailwind
colors: {
custom: {
50: '#6d69af',
500: '#1d318d',
950: '#000000',
},
}SCSS
$custom: #1d318d; $custom-light: #6d69af; $custom-dark: #000000;
JSON
{
"hex": "#1d318d",
"rgb": {
"r": 29,
"g": 49,
"b": 141
},
"hsl": {
"h": 229.286,
"s": 65.882,
"l": 33.333
},
"oklch": {
"l": 0.36315,
"c": 0.15372,
"h": 268
},
"luminance": 0.04381
}Semantic roles & 50–950 ramp
primary
#1D318D
secondary
#BCA84A
accent
#CA3FE9
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F