#3E2A82#3E2A82
#3E2A82 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.4% C 0.140 H 287.8°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).
Color values
| HEX | #3E2A82 |
|---|---|
| RGB | rgb(62, 42, 130) |
| HSL | hsl(254, 51%, 34%) |
| HSV | hsv(254, 68%, 51%) |
| CMYK | cmyk(52.3%, 67.7%, 0%, 49%) |
| CIE-LAB | lab(24.61, 32.95, -46.59) |
| CIE-LCH | lch(24.61, 57.06, 305.27°) |
| OKLab | oklab(36.43% 0.0428 -0.1336) |
| OKLCH | oklch(36.43% 0.14 287.8) |
| XYZ | xyz(6.8427, 4.2915, 21.5825) |
| Luminance | 0.0429 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.41
Midnight Blue
#191970
ΔE00 6.40
Blueberry
#464196
ΔE00 6.89
Royal
#0C1793
ΔE00 7.06
Indigo (survey)
#380282
ΔE00 7.21
Indigo
#4B0082
ΔE00 7.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E2A82 #6E822A
analogous
#2A4282 #3E2A82 #6A2A82
triadic
#3E2A82 #823E2A #2A823E
tetradic
#3E2A82 #822A42 #6E822A #2A826A
square
#3E2A82 #822A42 #6E822A #2A826A
split-complementary
#3E2A82 #826A2A #42822A
monochromatic
#120C25 #281B54 #3E2A82 #5439B0 #755CCA
Accessibility & contrast
On white
11.30
#3E2A82 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#3E2A82 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E2A82
11.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E2A82 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E2A82 | 1.00 | 11.30 | 1.86 | 11.30 |
| #FFFFFF | 11.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#003880
Tritanopia (blue-blind)
#254052
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3e2a82; /* rgb */ color: rgb(62, 42, 130); /* oklch */ color: oklch(36.4% 0.140 287.8);
Tailwind
colors: {
custom: {
50: '#7a65a7',
500: '#3e2a82',
950: '#000000',
},
}SCSS
$custom: #3e2a82; $custom-light: #7a65a7; $custom-dark: #000000;
JSON
{
"hex": "#3e2a82",
"rgb": {
"r": 62,
"g": 42,
"b": 130
},
"hsl": {
"h": 253.636,
"s": 51.163,
"l": 33.725
},
"oklch": {
"l": 0.36425,
"c": 0.14032,
"h": 287.8
},
"luminance": 0.04292
}Semantic roles & 50–950 ramp
primary
#3E2A82
secondary
#9CB058
accent
#DB4DBA
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F