#2E1979#2E1979
#2E1979 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.151 H 283.6°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1979 |
|---|---|
| RGB | rgb(46, 25, 121) |
| HSL | hsl(253, 66%, 29%) |
| HSV | hsv(253, 79%, 47%) |
| CMYK | cmyk(62%, 79.3%, 0%, 52.5%) |
| CIE-LAB | lab(18.61, 37.21, -50.78) |
| CIE-LCH | lch(18.61, 62.95, 306.24°) |
| OKLab | oklab(31.5% 0.0355 -0.1464) |
| OKLCH | oklch(31.5% 0.151 283.6) |
| XYZ | xyz(4.9245, 2.6563, 18.3387) |
| Luminance | 0.0266 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.13
Indigo (survey)
#380282
ΔE00 4.05
Royal
#0C1793
ΔE00 4.84
Dark Royal Blue
#02066F
ΔE00 5.23
Deep Blue
#040273
ΔE00 5.42
Navy
#000080
ΔE00 5.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1979 #647919
analogous
#193479 #2E1979 #5E1979
triadic
#2E1979 #792E19 #19792E
tetradic
#2E1979 #791934 #647919 #19795E
square
#2E1979 #791934 #647919 #19795E
split-complementary
#2E1979 #795E19 #347919
monochromatic
#0A0519 #1B0F46 #2E1979 #4123AC #5A37D6
Accessibility & contrast
On white
13.71
#2E1979 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#2E1979 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1979
13.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1979 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1979 | 1.00 | 13.71 | 1.53 | 13.71 |
| #FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2e1979; /* rgb */ color: rgb(46, 25, 121); /* oklch */ color: oklch(31.5% 0.151 283.6);
Tailwind
colors: {
custom: {
50: '#7159a1',
500: '#2e1979',
950: '#000000',
},
}SCSS
$custom: #2e1979; $custom-light: #7159a1; $custom-dark: #000000;
JSON
{
"hex": "#2e1979",
"rgb": {
"r": 46,
"g": 25,
"b": 121
},
"hsl": {
"h": 253.125,
"s": 65.753,
"l": 28.627
},
"oklch": {
"l": 0.31496,
"c": 0.15059,
"h": 283.6
},
"luminance": 0.02657
}Semantic roles & 50–950 ramp
primary
#2E1979
secondary
#96AE40
accent
#E93FC4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F