#2E1780#2E1780
#2E1780 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.161 H 282.4°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1780 |
|---|---|
| RGB | rgb(46, 23, 128) |
| HSL | hsl(253, 70%, 30%) |
| HSV | hsv(253, 82%, 50%) |
| CMYK | cmyk(64.1%, 82%, 0%, 49.8%) |
| CIE-LAB | lab(19.02, 40.41, -54.56) |
| CIE-LCH | lch(19.02, 67.89, 306.52°) |
| OKLab | oklab(32.01% 0.0346 -0.1574) |
| OKLCH | oklch(32.01% 0.161 282.4) |
| XYZ | xyz(5.3282, 2.7518, 20.6683) |
| Luminance | 0.0275 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.33
Midnight Blue
#191970
ΔE00 3.84
Royal
#0C1793
ΔE00 3.90
Darkblue
#00008B
ΔE00 4.87
Navy
#000080
ΔE00 4.96
Deep Blue
#040273
ΔE00 5.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1780 #698017
analogous
#173580 #2E1780 #631780
triadic
#2E1780 #802E17 #17802E
tetradic
#2E1780 #801735 #698017 #178063
square
#2E1780 #801735 #698017 #178063
split-complementary
#2E1780 #806317 #358017
monochromatic
#09051A #1B0E4C #2E1780 #4120B4 #5A36DB
Accessibility & contrast
On white
13.54
#2E1780 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2E1780 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1780
13.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1780 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1780 | 1.00 | 13.54 | 1.55 | 13.54 |
| #FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2e1780; /* rgb */ color: rgb(46, 23, 128); /* oklch */ color: oklch(32.0% 0.161 282.4);
Tailwind
colors: {
custom: {
50: '#7358a6',
500: '#2e1780',
950: '#000000',
},
}SCSS
$custom: #2e1780; $custom-light: #7358a6; $custom-dark: #000000;
JSON
{
"hex": "#2e1780",
"rgb": {
"r": 46,
"g": 23,
"b": 128
},
"hsl": {
"h": 253.143,
"s": 69.536,
"l": 29.608
},
"oklch": {
"l": 0.3201,
"c": 0.16114,
"h": 282.4
},
"luminance": 0.02752
}Semantic roles & 50–950 ramp
primary
#2E1780
secondary
#9BB43E
accent
#EC3BC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F