#2E1879#2E1879
#2E1879 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.152 H 283.8°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1879 |
|---|---|
| RGB | rgb(46, 24, 121) |
| HSL | hsl(254, 67%, 28%) |
| HSV | hsv(254, 80%, 47%) |
| CMYK | cmyk(62%, 80.2%, 0%, 52.5%) |
| CIE-LAB | lab(18.43, 37.74, -51.08) |
| CIE-LCH | lch(18.43, 63.51, 306.46°) |
| OKLab | oklab(31.37% 0.0362 -0.1472) |
| OKLCH | oklch(31.37% 0.152 283.8) |
| XYZ | xyz(4.9035, 2.6143, 18.3317) |
| Luminance | 0.0261 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.20
Indigo (survey)
#380282
ΔE00 3.85
Royal
#0C1793
ΔE00 4.83
Dark Royal Blue
#02066F
ΔE00 5.10
Deep Blue
#040273
ΔE00 5.26
Navy
#000080
ΔE00 5.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1879 #637918
analogous
#183279 #2E1879 #5E1879
triadic
#2E1879 #792E18 #18792E
tetradic
#2E1879 #791832 #637918 #18795E
square
#2E1879 #791832 #637918 #18795E
split-complementary
#2E1879 #795E18 #327918
monochromatic
#0A051A #1B0E46 #2E1879 #4122AC #5935D7
Accessibility & contrast
On white
13.79
#2E1879 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#2E1879 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1879
13.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1879 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1879 | 1.00 | 13.79 | 1.52 | 13.79 |
| #FFFFFF | 13.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2e1879; /* rgb */ color: rgb(46, 24, 121); /* oklch */ color: oklch(31.4% 0.152 283.8);
Tailwind
colors: {
custom: {
50: '#7158a1',
500: '#2e1879',
950: '#000000',
},
}SCSS
$custom: #2e1879; $custom-light: #7158a1; $custom-dark: #000000;
JSON
{
"hex": "#2e1879",
"rgb": {
"r": 46,
"g": 24,
"b": 121
},
"hsl": {
"h": 253.608,
"s": 66.897,
"l": 28.431
},
"oklch": {
"l": 0.31368,
"c": 0.15161,
"h": 283.8
},
"luminance": 0.02615
}Semantic roles & 50–950 ramp
primary
#2E1879
secondary
#95AE3F
accent
#EA3EC3
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F