#2D1E8D#2D1E8D
#2D1E8D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.171 H 278.5°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1E8D |
|---|---|
| RGB | rgb(45, 30, 141) |
| HSL | hsl(248, 65%, 34%) |
| HSV | hsv(248, 79%, 55%) |
| CMYK | cmyk(68.1%, 78.7%, 0%, 44.7%) |
| CIE-LAB | lab(21.61, 40.79, -58.46) |
| CIE-LCH | lch(21.61, 71.28, 304.91°) |
| OKLab | oklab(34.22% 0.0252 -0.1688) |
| OKLCH | oklch(34.22% 0.171 278.5) |
| XYZ | xyz(6.3526, 3.4090, 25.5174) |
| Luminance | 0.0341 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.88
Cobalt Blue
#030AA7
ΔE00 4.93
Indigo (survey)
#380282
ΔE00 4.94
Midnight Blue
#191970
ΔE00 5.04
Indigo Blue
#3A18B1
ΔE00 5.35
Royal Blue (survey)
#0504AA
ΔE00 5.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1E8D #7E8D1E
analogous
#1E468D #2D1E8D #641E8D
triadic
#2D1E8D #8D2D1E #1E8D2D
tetradic
#2D1E8D #8D1E46 #7E8D1E #1E8D64
square
#2D1E8D #8D1E46 #7E8D1E #1E8D64
split-complementary
#2D1E8D #8D641E #468D1E
monochromatic
#0D0928 #1D135B #2D1E8D #3D29BF #5F4CD9
Accessibility & contrast
On white
12.49
#2D1E8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#2D1E8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1E8D
12.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1E8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1E8D | 1.00 | 12.49 | 1.68 | 12.49 |
| #FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2d1e8d; /* rgb */ color: rgb(45, 30, 141); /* oklch */ color: oklch(34.2% 0.171 278.5);
Tailwind
colors: {
custom: {
50: '#745daf',
500: '#2d1e8d',
950: '#000000',
},
}SCSS
$custom: #2d1e8d; $custom-light: #745daf; $custom-dark: #000000;
JSON
{
"hex": "#2d1e8d",
"rgb": {
"r": 45,
"g": 30,
"b": 141
},
"hsl": {
"h": 248.108,
"s": 64.912,
"l": 33.529
},
"oklch": {
"l": 0.34223,
"c": 0.17071,
"h": 278.5
},
"luminance": 0.0341
}Semantic roles & 50–950 ramp
primary
#2D1E8D
secondary
#ACBC4B
accent
#E840D1
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980