#1D1B7E#1D1B7E
#1D1B7E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.159 H 273.0°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).
Color values
| HEX | #1D1B7E |
|---|---|
| RGB | rgb(29, 27, 126) |
| HSL | hsl(241, 65%, 30%) |
| HSV | hsv(241, 79%, 49%) |
| CMYK | cmyk(77%, 78.6%, 0%, 50.6%) |
| CIE-LAB | lab(18.15, 35.86, -54.78) |
| CIE-LCH | lch(18.15, 65.47, 303.21°) |
| OKLab | oklab(30.98% 0.0082 -0.1585) |
| OKLCH | oklch(30.98% 0.159 273) |
| XYZ | xyz(4.6633, 2.5510, 19.9812) |
| Luminance | 0.0255 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.27
Royal
#0C1793
ΔE00 3.31
Dark Royal Blue
#02066F
ΔE00 4.81
Navy
#000080
ΔE00 5.03
Darkblue
#00008B
ΔE00 5.08
Deep Blue
#040273
ΔE00 5.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D1B7E #7C7E1B
analogous
#1B4B7E #1D1B7E #4E1B7E
triadic
#1D1B7E #7E1D1B #1B7E1D
tetradic
#1D1B7E #7E1B4B #7C7E1B #1B7E4E
square
#1D1B7E #7E1B4B #7C7E1B #1B7E4E
split-complementary
#1D1B7E #7E4E1B #4B7E1B
monochromatic
#060519 #11104C #1D1B7E #2926B0 #413ED6
Accessibility & contrast
On white
13.91
#1D1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#1D1B7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D1B7E
13.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D1B7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D1B7E | 1.00 | 13.91 | 1.51 | 13.91 |
| #FFFFFF | 13.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #1d1b7e; /* rgb */ color: rgb(29, 27, 126); /* oklch */ color: oklch(31.0% 0.159 273.0);
Tailwind
colors: {
custom: {
50: '#6b59a5',
500: '#1d1b7e',
950: '#000000',
},
}SCSS
$custom: #1d1b7e; $custom-light: #6b59a5; $custom-dark: #000000;
JSON
{
"hex": "#1d1b7e",
"rgb": {
"r": 29,
"g": 27,
"b": 126
},
"hsl": {
"h": 241.212,
"s": 64.706,
"l": 30
},
"oklch": {
"l": 0.30978,
"c": 0.15873,
"h": 273
},
"luminance": 0.02551
}Semantic roles & 50–950 ramp
primary
#1D1B7E
secondary
#B0B243
accent
#E840E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F