#2E1783#2E1783
#2E1783 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.165 H 281.8°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1783 |
|---|---|
| RGB | rgb(46, 23, 131) |
| HSL | hsl(253, 70%, 30%) |
| HSV | hsv(253, 82%, 51%) |
| CMYK | cmyk(64.9%, 82.4%, 0%, 48.6%) |
| CIE-LAB | lab(19.36, 41.33, -55.90) |
| CIE-LCH | lch(19.36, 69.52, 306.47°) |
| OKLab | oklab(32.34% 0.0337 -0.1613) |
| OKLCH | oklch(32.34% 0.165 281.8) |
| XYZ | xyz(5.5286, 2.8319, 21.7236) |
| Luminance | 0.0283 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.30
Royal
#0C1793
ΔE00 3.56
Midnight Blue
#191970
ΔE00 4.14
Darkblue
#00008B
ΔE00 4.70
Navy
#000080
ΔE00 4.93
Deep Blue
#040273
ΔE00 5.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1783 #6C8317
analogous
#173683 #2E1783 #641783
triadic
#2E1783 #832E17 #17832E
tetradic
#2E1783 #831736 #6C8317 #178364
square
#2E1783 #831736 #6C8317 #178364
split-complementary
#2E1783 #836417 #368317
monochromatic
#09051B #1C0E4F #2E1783 #4020B7 #5B38DC
Accessibility & contrast
On white
13.41
#2E1783 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2E1783 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1783
13.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1783 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1783 | 1.00 | 13.41 | 1.57 | 13.41 |
| #FFFFFF | 13.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002B81
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2e1783; /* rgb */ color: rgb(46, 23, 131); /* oklch */ color: oklch(32.3% 0.165 281.8);
Tailwind
colors: {
custom: {
50: '#7358a8',
500: '#2e1783',
950: '#000000',
},
}SCSS
$custom: #2e1783; $custom-light: #7358a8; $custom-dark: #000000;
JSON
{
"hex": "#2e1783",
"rgb": {
"r": 46,
"g": 23,
"b": 131
},
"hsl": {
"h": 252.778,
"s": 70.13,
"l": 30.196
},
"oklch": {
"l": 0.32344,
"c": 0.16476,
"h": 281.8
},
"luminance": 0.02832
}Semantic roles & 50–950 ramp
primary
#2E1783
secondary
#9EB73F
accent
#ED3BC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F