#3E2A80#3E2A80
#3E2A80 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.138 H 288.2°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).
Color values
| HEX | #3E2A80 |
|---|---|
| RGB | rgb(62, 42, 128) |
| HSL | hsl(254, 51%, 33%) |
| HSV | hsv(254, 67%, 50%) |
| CMYK | cmyk(51.6%, 67.2%, 0%, 49.8%) |
| CIE-LAB | lab(24.44, 32.32, -45.61) |
| CIE-LCH | lch(24.44, 55.90, 305.32°) |
| OKLab | oklab(36.25% 0.0431 -0.1307) |
| OKLCH | oklch(36.25% 0.138 288.2) |
| XYZ | xyz(6.7097, 4.2383, 20.8824) |
| Luminance | 0.0424 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.44
Midnight Blue
#191970
ΔE00 6.36
Blueberry
#464196
ΔE00 7.01
Royal
#0C1793
ΔE00 7.28
Indigo (survey)
#380282
ΔE00 7.29
Indigo
#4B0082
ΔE00 7.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E2A80 #6C802A
analogous
#2A4180 #3E2A80 #692A80
triadic
#3E2A80 #803E2A #2A803E
tetradic
#3E2A80 #802A41 #6C802A #2A8069
square
#3E2A80 #802A41 #6C802A #2A8069
split-complementary
#3E2A80 #80692A #41802A
monochromatic
#110C24 #281B52 #3E2A80 #5439AE #755BC9
Accessibility & contrast
On white
11.36
#3E2A80 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#3E2A80 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E2A80
11.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E2A80 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E2A80 | 1.00 | 11.36 | 1.85 | 11.36 |
| #FFFFFF | 11.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C83
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#273F51
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3e2a80; /* rgb */ color: rgb(62, 42, 128); /* oklch */ color: oklch(36.3% 0.138 288.2);
Tailwind
colors: {
custom: {
50: '#7a65a6',
500: '#3e2a80',
950: '#000000',
},
}SCSS
$custom: #3e2a80; $custom-light: #7a65a6; $custom-dark: #000000;
JSON
{
"hex": "#3e2a80",
"rgb": {
"r": 62,
"g": 42,
"b": 128
},
"hsl": {
"h": 253.953,
"s": 50.588,
"l": 33.333
},
"oklch": {
"l": 0.36251,
"c": 0.13764,
"h": 288.2
},
"luminance": 0.04239
}Semantic roles & 50–950 ramp
primary
#3E2A80
secondary
#9AAF57
accent
#DA4EB9
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F