#3E2398#3E2398
#3E2398 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.176 H 284.6°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).
Color values
| HEX | #3E2398 |
|---|---|
| RGB | rgb(62, 35, 152) |
| HSL | hsl(254, 63%, 37%) |
| HSV | hsv(254, 77%, 60%) |
| CMYK | cmyk(59.2%, 77%, 0%, 40.4%) |
| CIE-LAB | lab(25.24, 43.66, -59.23) |
| CIE-LCH | lch(25.24, 73.59, 306.40°) |
| OKLab | oklab(37.49% 0.0445 -0.1706) |
| OKLCH | oklch(37.49% 0.176 284.6) |
| XYZ | xyz(8.2534, 4.4927, 30.1319) |
| Luminance | 0.0449 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.81
Royal
#0C1793
ΔE00 5.12
Cobalt Blue
#030AA7
ΔE00 5.86
Ultramarine
#2000B1
ΔE00 5.89
Indigo (survey)
#380282
ΔE00 6.03
Royal Blue (survey)
#0504AA
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E2398 #7D9823
analogous
#234398 #3E2398 #792398
triadic
#3E2398 #983E23 #23983E
tetradic
#3E2398 #982343 #7D9823 #239879
square
#3E2398 #982343 #7D9823 #239879
split-complementary
#3E2398 #987923 #439823
monochromatic
#150C35 #2A1866 #3E2398 #522ECA #795CD9
Accessibility & contrast
On white
11.06
#3E2398 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#3E2398 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E2398
11.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E2398 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E2398 | 1.00 | 11.06 | 1.90 | 11.06 |
| #FFFFFF | 11.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#0A445C
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #3e2398; /* rgb */ color: rgb(62, 35, 152); /* oklch */ color: oklch(37.5% 0.176 284.6);
Tailwind
colors: {
custom: {
50: '#7e61b7',
500: '#3e2398',
950: '#000000',
},
}SCSS
$custom: #3e2398; $custom-light: #7e61b7; $custom-dark: #000000;
JSON
{
"hex": "#3e2398",
"rgb": {
"r": 62,
"g": 35,
"b": 152
},
"hsl": {
"h": 253.846,
"s": 62.567,
"l": 36.667
},
"oklch": {
"l": 0.37495,
"c": 0.17636,
"h": 284.6
},
"luminance": 0.04493
}Semantic roles & 50–950 ramp
primary
#3E2398
secondary
#A7BE59
accent
#E642C0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980