#3E2A7C#3E2A7C
#3E2A7C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 35.9% C 0.132 H 289.2°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).
Color values
| HEX | #3E2A7C |
|---|---|
| RGB | rgb(62, 42, 124) |
| HSL | hsl(255, 49%, 33%) |
| HSV | hsv(255, 66%, 49%) |
| CMYK | cmyk(50%, 66.1%, 0%, 51.4%) |
| CIE-LAB | lab(24.11, 31.06, -43.62) |
| CIE-LCH | lch(24.11, 53.55, 305.45°) |
| OKLab | oklab(35.91% 0.0435 -0.1249) |
| OKLCH | oklch(35.91% 0.132 289.2) |
| XYZ | xyz(6.4516, 4.1350, 19.5231) |
| Luminance | 0.0413 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.56
Midnight Blue
#191970
ΔE00 6.33
Blueberry
#464196
ΔE00 7.30
Indigo (survey)
#380282
ΔE00 7.52
Indigo
#4B0082
ΔE00 7.68
Royal
#0C1793
ΔE00 7.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E2A7C #687C2A
analogous
#2A3F7C #3E2A7C #672A7C
triadic
#3E2A7C #7C3E2A #2A7C3E
tetradic
#3E2A7C #7C2A3F #687C2A #2A7C67
square
#3E2A7C #7C2A3F #687C2A #2A7C67
split-complementary
#3E2A7C #7C672A #3F7C2A
monochromatic
#100B21 #271B4E #3E2A7C #5539AA #7459C7
Accessibility & contrast
On white
11.49
#3E2A7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#3E2A7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E2A7C
11.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E2A7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E2A7C | 1.00 | 11.49 | 1.83 | 11.49 |
| #FFFFFF | 11.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#2A3E4F
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3e2a7c; /* rgb */ color: rgb(62, 42, 124); /* oklch */ color: oklch(35.9% 0.132 289.2);
Tailwind
colors: {
custom: {
50: '#7965a3',
500: '#3e2a7c',
950: '#000000',
},
}SCSS
$custom: #3e2a7c; $custom-light: #7965a3; $custom-dark: #000000;
JSON
{
"hex": "#3e2a7c",
"rgb": {
"r": 62,
"g": 42,
"b": 124
},
"hsl": {
"h": 254.634,
"s": 49.398,
"l": 32.549
},
"oklch": {
"l": 0.35907,
"c": 0.13225,
"h": 289.2
},
"luminance": 0.04135
}Semantic roles & 50–950 ramp
primary
#3E2A7C
secondary
#97AD55
accent
#D94FB7
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#09050F
muted
#7B7A7F