#2E1281#2E1281
#2E1281 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.167 H 282.8°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1281 |
|---|---|
| RGB | rgb(46, 18, 129) |
| HSL | hsl(255, 76%, 29%) |
| HSV | hsv(255, 86%, 51%) |
| CMYK | cmyk(64.3%, 86%, 0%, 49.4%) |
| CIE-LAB | lab(18.36, 42.98, -56.29) |
| CIE-LCH | lch(18.36, 70.83, 307.36°) |
| OKLab | oklab(31.59% 0.037 -0.1623) |
| OKLCH | oklch(31.59% 0.167 282.8) |
| XYZ | xyz(5.3042, 2.5981, 20.9866) |
| Luminance | 0.0260 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.49
Royal
#0C1793
ΔE00 3.94
Darkblue
#00008B
ΔE00 4.22
Navy
#000080
ΔE00 4.33
Midnight Blue
#191970
ΔE00 4.36
Deep Blue
#040273
ΔE00 4.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1281 #658112
analogous
#122E81 #2E1281 #661281
triadic
#2E1281 #812E12 #12812E
tetradic
#2E1281 #81122E #658112 #128166
square
#2E1281 #81122E #658112 #128166
split-complementary
#2E1281 #816612 #2E8112
monochromatic
#0A041B #1B0B4B #2E1281 #4119B7 #5A2CE2
Accessibility & contrast
On white
13.82
#2E1281 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#2E1281 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1281
13.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1281 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1281 | 1.00 | 13.82 | 1.52 | 13.82 |
| #FFFFFF | 13.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2e1281; /* rgb */ color: rgb(46, 18, 129); /* oklch */ color: oklch(31.6% 0.167 282.8);
Tailwind
colors: {
custom: {
50: '#7356a7',
500: '#2e1281',
950: '#000000',
},
}SCSS
$custom: #2e1281; $custom-light: #7356a7; $custom-dark: #000000;
JSON
{
"hex": "#2e1281",
"rgb": {
"r": 46,
"g": 18,
"b": 129
},
"hsl": {
"h": 255.135,
"s": 75.51,
"l": 28.824
},
"oklch": {
"l": 0.31585,
"c": 0.16652,
"h": 282.8
},
"luminance": 0.02598
}Semantic roles & 50–950 ramp
primary
#2E1281
secondary
#97B738
accent
#F236C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F