#3E2A8A#3E2A8A
#3E2A8A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.1% C 0.151 H 286.0°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).
Color values
| HEX | #3E2A8A |
|---|---|
| RGB | rgb(62, 42, 138) |
| HSL | hsl(253, 53%, 35%) |
| HSV | hsv(253, 70%, 54%) |
| CMYK | cmyk(55.1%, 69.6%, 0%, 45.9%) |
| CIE-LAB | lab(25.30, 35.47, -50.47) |
| CIE-LCH | lch(25.30, 61.69, 305.10°) |
| OKLab | oklab(37.14% 0.0417 -0.145) |
| OKLCH | oklch(37.14% 0.151 286) |
| XYZ | xyz(7.4006, 4.5146, 24.5213) |
| Luminance | 0.0452 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.50
Royal
#0C1793
ΔE00 6.37
Blueberry
#464196
ΔE00 6.57
Indigo Blue
#3A18B1
ΔE00 6.61
Midnight Blue
#191970
ΔE00 6.80
Indigo (survey)
#380282
ΔE00 7.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E2A8A #768A2A
analogous
#2A468A #3E2A8A #6E2A8A
triadic
#3E2A8A #8A3E2A #2A8A3E
tetradic
#3E2A8A #8A2A46 #768A2A #2A8A6E
square
#3E2A8A #8A2A46 #768A2A #2A8A6E
split-complementary
#3E2A8A #8A6E2A #468A2A
monochromatic
#140D2C #291C5B #3E2A8A #5338B9 #7760CF
Accessibility & contrast
On white
11.04
#3E2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#3E2A8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E2A8A
11.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E2A8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E2A8A | 1.00 | 11.04 | 1.90 | 11.04 |
| #FFFFFF | 11.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#1E4256
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #3e2a8a; /* rgb */ color: rgb(62, 42, 138); /* oklch */ color: oklch(37.1% 0.151 286.0);
Tailwind
colors: {
custom: {
50: '#7b65ad',
500: '#3e2a8a',
950: '#000000',
},
}SCSS
$custom: #3e2a8a; $custom-light: #7b65ad; $custom-dark: #000000;
JSON
{
"hex": "#3e2a8a",
"rgb": {
"r": 62,
"g": 42,
"b": 138
},
"hsl": {
"h": 252.5,
"s": 53.333,
"l": 35.294
},
"oklch": {
"l": 0.37139,
"c": 0.15087,
"h": 286
},
"luminance": 0.04515
}Semantic roles & 50–950 ramp
primary
#3E2A8A
secondary
#A2B45B
accent
#DD4BBE
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F