#1D1F7D#1D1F7D
#1D1F7D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.153 H 272.4°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).
Color values
| HEX | #1D1F7D |
|---|---|
| RGB | rgb(29, 31, 125) |
| HSL | hsl(239, 62%, 30%) |
| HSV | hsv(239, 77%, 49%) |
| CMYK | cmyk(76.8%, 75.2%, 0%, 51%) |
| CIE-LAB | lab(18.89, 33.09, -52.91) |
| CIE-LCH | lch(18.89, 62.41, 302.02°) |
| OKLab | oklab(31.47% 0.0065 -0.1531) |
| OKLCH | oklch(31.47% 0.153 272.4) |
| XYZ | xyz(4.6971, 2.7214, 19.6758) |
| Luminance | 0.0272 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.35
Royal
#0C1793
ΔE00 3.93
Dark Royal Blue
#02066F
ΔE00 5.66
Navy
#000080
ΔE00 6.09
Deep Blue
#040273
ΔE00 6.09
Darkblue
#00008B
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D1F7D #7D7B1D
analogous
#1D4F7D #1D1F7D #4B1D7D
triadic
#1D1F7D #7D1D1F #1F7D1D
tetradic
#1D1F7D #7D1D4F #7D7B1D #1D7D4B
square
#1D1F7D #7D1D4F #7D7B1D #1D7D4B
split-complementary
#1D1F7D #7D4B1D #4F7D1D
monochromatic
#06061A #11134B #1D1F7D #292BAF #4144D3
Accessibility & contrast
On white
13.60
#1D1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#1D1F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D1F7D
13.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D1F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D1F7D | 1.00 | 13.60 | 1.54 | 13.60 |
| #FFFFFF | 13.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00297B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #1d1f7d; /* rgb */ color: rgb(29, 31, 125); /* oklch */ color: oklch(31.5% 0.153 272.4);
Tailwind
colors: {
custom: {
50: '#6a5ba4',
500: '#1d1f7d',
950: '#000000',
},
}SCSS
$custom: #1d1f7d; $custom-light: #6a5ba4; $custom-dark: #000000;
JSON
{
"hex": "#1d1f7d",
"rgb": {
"r": 29,
"g": 31,
"b": 125
},
"hsl": {
"h": 238.75,
"s": 62.338,
"l": 30.196
},
"oklch": {
"l": 0.31472,
"c": 0.15326,
"h": 272.4
},
"luminance": 0.02722
}Semantic roles & 50–950 ramp
primary
#1D1F7D
secondary
#B1AE45
accent
#E242E5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F