#2E1F76#2E1F76
#2E1F76 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.0% C 0.140 H 283.0°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1F76 |
|---|---|
| RGB | rgb(46, 31, 118) |
| HSL | hsl(250, 58%, 29%) |
| HSV | hsv(250, 74%, 46%) |
| CMYK | cmyk(61%, 73.7%, 0%, 53.7%) |
| CIE-LAB | lab(19.51, 32.85, -47.38) |
| CIE-LCH | lch(19.51, 57.65, 304.74°) |
| OKLab | oklab(32.04% 0.0315 -0.1364) |
| OKLCH | oklch(32.04% 0.14 283) |
| XYZ | xyz(4.8857, 2.8685, 17.4323) |
| Luminance | 0.0287 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.94
Royal
#0C1793
ΔE00 5.63
Indigo (survey)
#380282
ΔE00 5.66
Dark Royal Blue
#02066F
ΔE00 6.23
Darkblue (survey)
#030764
ΔE00 6.58
Deep Blue
#040273
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1F76 #67761F
analogous
#1F3C76 #2E1F76 #5A1F76
triadic
#2E1F76 #762E1F #1F762E
tetradic
#2E1F76 #761F3C #67761F #1F765A
square
#2E1F76 #761F3C #67761F #1F765A
split-complementary
#2E1F76 #765A1F #3C761F
monochromatic
#090618 #1B1246 #2E1F76 #412CA6 #5A42CD
Accessibility & contrast
On white
13.34
#2E1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2E1F76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1F76
13.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1F76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1F76 | 1.00 | 13.34 | 1.57 | 13.34 |
| #FFFFFF | 13.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#033648
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2e1f76; /* rgb */ color: rgb(46, 31, 118); /* oklch */ color: oklch(32.0% 0.140 283.0);
Tailwind
colors: {
custom: {
50: '#705c9e',
500: '#2e1f76',
950: '#000000',
},
}SCSS
$custom: #2e1f76; $custom-light: #705c9e; $custom-dark: #000000;
JSON
{
"hex": "#2e1f76",
"rgb": {
"r": 46,
"g": 31,
"b": 118
},
"hsl": {
"h": 250.345,
"s": 58.389,
"l": 29.216
},
"oklch": {
"l": 0.32038,
"c": 0.14003,
"h": 283
},
"luminance": 0.02869
}Semantic roles & 50–950 ramp
primary
#2E1F76
secondary
#99AA47
accent
#E246C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E