#2E1D8C#2E1D8C
#2E1D8C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.170 H 279.3°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1D8C |
|---|---|
| RGB | rgb(46, 29, 140) |
| HSL | hsl(249, 66%, 33%) |
| HSV | hsv(249, 79%, 55%) |
| CMYK | cmyk(67.1%, 79.3%, 0%, 45.1%) |
| CIE-LAB | lab(21.40, 41.11, -58.18) |
| CIE-LCH | lch(21.40, 71.23, 305.25°) |
| OKLab | oklab(34.07% 0.0275 -0.168) |
| OKLCH | oklch(34.07% 0.17 279.3) |
| XYZ | xyz(6.2982, 3.3525, 25.1211) |
| Luminance | 0.0335 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.95
Indigo (survey)
#380282
ΔE00 4.65
Cobalt Blue
#030AA7
ΔE00 4.96
Midnight Blue
#191970
ΔE00 4.98
Indigo Blue
#3A18B1
ΔE00 5.42
Darkblue
#00008B
ΔE00 5.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1D8C #7B8C1D
analogous
#1D438C #2E1D8C #651D8C
triadic
#2E1D8C #8C2E1D #1D8C2E
tetradic
#2E1D8C #8C1D43 #7B8C1D #1D8C65
square
#2E1D8C #8C1D43 #7B8C1D #1D8C65
split-complementary
#2E1D8C #8C651D #438C1D
monochromatic
#0D0827 #1D1259 #2E1D8C #3F28BF #604AD9
Accessibility & contrast
On white
12.57
#2E1D8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#2E1D8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1D8C
12.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1D8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1D8C | 1.00 | 12.57 | 1.67 | 12.57 |
| #FFFFFF | 12.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2e1d8c; /* rgb */ color: rgb(46, 29, 140); /* oklch */ color: oklch(34.1% 0.170 279.3);
Tailwind
colors: {
custom: {
50: '#755caf',
500: '#2e1d8c',
950: '#000000',
},
}SCSS
$custom: #2e1d8c; $custom-light: #755caf; $custom-dark: #000000;
JSON
{
"hex": "#2e1d8c",
"rgb": {
"r": 46,
"g": 29,
"b": 140
},
"hsl": {
"h": 249.189,
"s": 65.68,
"l": 33.137
},
"oklch": {
"l": 0.34065,
"c": 0.17022,
"h": 279.3
},
"luminance": 0.03353
}Semantic roles & 50–950 ramp
primary
#2E1D8C
secondary
#AABC49
accent
#E93FCF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F