#1D217F#1D217F
#1D217F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.154 H 271.9°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).
Color values
| HEX | #1D217F |
|---|---|
| RGB | rgb(29, 33, 127) |
| HSL | hsl(238, 63%, 31%) |
| HSV | hsv(238, 77%, 50%) |
| CMYK | cmyk(77.2%, 74%, 0%, 50.2%) |
| CIE-LAB | lab(19.56, 32.56, -53.08) |
| CIE-LCH | lch(19.56, 62.27, 301.53°) |
| OKLab | oklab(32.02% 0.0051 -0.1536) |
| OKLCH | oklch(32.02% 0.154 271.9) |
| XYZ | xyz(4.8800, 2.8807, 20.3734) |
| Luminance | 0.0288 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.86
Royal
#0C1793
ΔE00 3.98
Dark Royal Blue
#02066F
ΔE00 6.21
Darkblue
#00008B
ΔE00 6.49
Navy
#000080
ΔE00 6.54
Deep Blue
#040273
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D217F #7F7B1D
analogous
#1D527F #1D217F #4A1D7F
triadic
#1D217F #7F1D21 #217F1D
tetradic
#1D217F #7F1D52 #7F7B1D #1D7F4A
square
#1D217F #7F1D52 #7F7B1D #1D7F4A
split-complementary
#1D217F #7F4A1D #527F1D
monochromatic
#06071B #12144D #1D217F #282EB1 #4248D4
Accessibility & contrast
On white
13.32
#1D217F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#1D217F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D217F
13.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D217F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D217F | 1.00 | 13.32 | 1.58 | 13.32 |
| #FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1d217f; /* rgb */ color: rgb(29, 33, 127); /* oklch */ color: oklch(32.0% 0.154 271.9);
Tailwind
colors: {
custom: {
50: '#6a5da5',
500: '#1d217f',
950: '#000000',
},
}SCSS
$custom: #1d217f; $custom-light: #6a5da5; $custom-dark: #000000;
JSON
{
"hex": "#1d217f",
"rgb": {
"r": 29,
"g": 33,
"b": 127
},
"hsl": {
"h": 237.551,
"s": 62.821,
"l": 30.588
},
"oklch": {
"l": 0.32015,
"c": 0.1537,
"h": 271.9
},
"luminance": 0.02881
}Semantic roles & 50–950 ramp
primary
#1D217F
secondary
#B2AE45
accent
#DF42E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F