#2E1A7B#2E1A7B
#2E1A7B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.152 H 283.0°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1A7B |
|---|---|
| RGB | rgb(46, 26, 123) |
| HSL | hsl(252, 65%, 29%) |
| HSV | hsv(252, 79%, 48%) |
| CMYK | cmyk(62.6%, 78.9%, 0%, 51.8%) |
| CIE-LAB | lab(19.01, 37.31, -51.40) |
| CIE-LCH | lch(19.01, 63.51, 305.98°) |
| OKLab | oklab(31.84% 0.0342 -0.1482) |
| OKLCH | oklch(31.84% 0.152 283) |
| XYZ | xyz(5.0702, 2.7493, 18.9986) |
| Luminance | 0.0275 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.20
Indigo (survey)
#380282
ΔE00 4.13
Royal
#0C1793
ΔE00 4.58
Dark Royal Blue
#02066F
ΔE00 5.41
Deep Blue
#040273
ΔE00 5.58
Navy
#000080
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1A7B #677B1A
analogous
#1A377B #2E1A7B #5F1A7B
triadic
#2E1A7B #7B2E1A #1A7B2E
tetradic
#2E1A7B #7B1A37 #677B1A #1A7B5F
square
#2E1A7B #7B1A37 #677B1A #1A7B5F
split-complementary
#2E1A7B #7B5F1A #377B1A
monochromatic
#090519 #1B0F48 #2E1A7B #4125AE #5A3AD5
Accessibility & contrast
On white
13.55
#2E1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2E1A7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1A7B
13.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1A7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1A7B | 1.00 | 13.55 | 1.55 | 13.55 |
| #FFFFFF | 13.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2e1a7b; /* rgb */ color: rgb(46, 26, 123); /* oklch */ color: oklch(31.8% 0.152 283.0);
Tailwind
colors: {
custom: {
50: '#7159a2',
500: '#2e1a7b',
950: '#000000',
},
}SCSS
$custom: #2e1a7b; $custom-light: #7159a2; $custom-dark: #000000;
JSON
{
"hex": "#2e1a7b",
"rgb": {
"r": 46,
"g": 26,
"b": 123
},
"hsl": {
"h": 252.371,
"s": 65.101,
"l": 29.216
},
"oklch": {
"l": 0.3184,
"c": 0.15207,
"h": 283
},
"luminance": 0.0275
}Semantic roles & 50–950 ramp
primary
#2E1A7B
secondary
#99AF42
accent
#E840C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F