#1D218C#1D218C
#1D218C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.171 H 271.0°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).
Color values
| HEX | #1D218C |
|---|---|
| RGB | rgb(29, 33, 140) |
| HSL | hsl(238, 66%, 33%) |
| HSV | hsv(238, 79%, 55%) |
| CMYK | cmyk(79.3%, 76.4%, 0%, 45.1%) |
| CIE-LAB | lab(20.99, 37.23, -58.90) |
| CIE-LCH | lch(20.99, 69.68, 302.29°) |
| OKLab | oklab(33.46% 0.0029 -0.1706) |
| OKLCH | oklch(33.46% 0.171 271) |
| XYZ | xyz(5.7826, 3.2417, 25.1268) |
| Luminance | 0.0324 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.55
Midnight Blue
#191970
ΔE00 4.52
Cobalt Blue
#030AA7
ΔE00 5.30
Darkblue
#00008B
ΔE00 5.89
Royal Blue (survey)
#0504AA
ΔE00 5.91
Navy
#000080
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D218C #8C881D
analogous
#1D588C #1D218C #501D8C
triadic
#1D218C #8C1D21 #218C1D
tetradic
#1D218C #8C1D58 #8C881D #1D8C50
square
#1D218C #8C1D58 #8C881D #1D8C50
split-complementary
#1D218C #8C501D #588C1D
monochromatic
#080927 #121559 #1D218C #282DBF #4A4FD9
Accessibility & contrast
On white
12.74
#1D218C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#1D218C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D218C
12.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D218C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D218C | 1.00 | 12.74 | 1.65 | 12.74 |
| #FFFFFF | 12.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #1d218c; /* rgb */ color: rgb(29, 33, 140); /* oklch */ color: oklch(33.5% 0.171 271.0);
Tailwind
colors: {
custom: {
50: '#6e5eaf',
500: '#1d218c',
950: '#000000',
},
}SCSS
$custom: #1d218c; $custom-light: #6e5eaf; $custom-dark: #000000;
JSON
{
"hex": "#1d218c",
"rgb": {
"r": 29,
"g": 33,
"b": 140
},
"hsl": {
"h": 237.838,
"s": 65.68,
"l": 33.137
},
"oklch": {
"l": 0.33458,
"c": 0.17059,
"h": 271
},
"luminance": 0.03242
}Semantic roles & 50–950 ramp
primary
#1D218C
secondary
#BCB849
accent
#E33FE9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F