#2E1E7E#2E1E7E
#2E1E7E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.152 H 281.6°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1E7E |
|---|---|
| RGB | rgb(46, 30, 126) |
| HSL | hsl(250, 62%, 31%) |
| HSV | hsv(250, 76%, 49%) |
| CMYK | cmyk(63.5%, 76.2%, 0%, 50.6%) |
| CIE-LAB | lab(20.11, 36.06, -51.50) |
| CIE-LCH | lch(20.11, 62.87, 305.00°) |
| OKLab | oklab(32.71% 0.0305 -0.1485) |
| OKLCH | oklch(32.71% 0.152 281.6) |
| XYZ | xyz(5.3557, 3.0154, 20.0344) |
| Luminance | 0.0302 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.37
Royal
#0C1793
ΔE00 4.39
Indigo (survey)
#380282
ΔE00 4.89
Dark Royal Blue
#02066F
ΔE00 6.10
Darkblue
#00008B
ΔE00 6.18
Navy
#000080
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1E7E #6E7E1E
analogous
#1E3E7E #2E1E7E #5E1E7E
triadic
#2E1E7E #7E2E1E #1E7E2E
tetradic
#2E1E7E #7E1E3E #6E7E1E #1E7E5E
square
#2E1E7E #7E1E3E #6E7E1E #1E7E5E
split-complementary
#2E1E7E #7E5E1E #3E7E1E
monochromatic
#0A061B #1C124D #2E1E7E #402AAF #5C44D2
Accessibility & contrast
On white
13.10
#2E1E7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2E1E7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1E7E
13.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1E7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1E7E | 1.00 | 13.10 | 1.60 | 13.10 |
| #FFFFFF | 13.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2e1e7e; /* rgb */ color: rgb(46, 30, 126); /* oklch */ color: oklch(32.7% 0.152 281.6);
Tailwind
colors: {
custom: {
50: '#725ca4',
500: '#2e1e7e',
950: '#000000',
},
}SCSS
$custom: #2e1e7e; $custom-light: #725ca4; $custom-dark: #000000;
JSON
{
"hex": "#2e1e7e",
"rgb": {
"r": 46,
"g": 30,
"b": 126
},
"hsl": {
"h": 250,
"s": 61.538,
"l": 30.588
},
"oklch": {
"l": 0.32706,
"c": 0.15163,
"h": 281.6
},
"luminance": 0.03016
}Semantic roles & 50–950 ramp
primary
#2E1E7E
secondary
#9FB147
accent
#E543CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F