#3E237E#3E237E
#3E237E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.144 H 290.6°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).
Color values
| HEX | #3E237E |
|---|---|
| RGB | rgb(62, 35, 126) |
| HSL | hsl(258, 57%, 32%) |
| HSV | hsv(258, 72%, 49%) |
| CMYK | cmyk(50.8%, 72.2%, 0%, 50.6%) |
| CIE-LAB | lab(22.77, 35.82, -47.08) |
| CIE-LCH | lch(22.77, 59.15, 307.26°) |
| OKLab | oklab(34.99% 0.0507 -0.135) |
| OKLCH | oklch(34.99% 0.144 290.6) |
| XYZ | xyz(6.3525, 3.7323, 20.1203) |
| Luminance | 0.0373 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.55
Midnight Blue
#191970
ΔE00 5.72
Indigo
#4B0082
ΔE00 5.78
Royal
#0C1793
ΔE00 6.64
Royal Purple (survey)
#4B006E
ΔE00 6.98
Darkslateblue
#483D8B
ΔE00 7.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E237E #637E23
analogous
#23367E #3E237E #6C237E
triadic
#3E237E #7E3E23 #237E3E
tetradic
#3E237E #7E2336 #637E23 #237E6C
square
#3E237E #7E2336 #637E23 #237E6C
split-complementary
#3E237E #7E6C23 #367E23
monochromatic
#0F081E #26164E #3E237E #5630AE #744ECE
Accessibility & contrast
On white
12.02
#3E237E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#3E237E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E237E
12.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E237E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E237E | 1.00 | 12.02 | 1.75 | 12.02 |
| #FFFFFF | 12.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#293A4E
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3e237e; /* rgb */ color: rgb(62, 35, 126); /* oklch */ color: oklch(35.0% 0.144 290.6);
Tailwind
colors: {
custom: {
50: '#7a60a4',
500: '#3e237e',
950: '#000000',
},
}SCSS
$custom: #3e237e; $custom-light: #7a60a4; $custom-dark: #000000;
JSON
{
"hex": "#3e237e",
"rgb": {
"r": 62,
"g": 35,
"b": 126
},
"hsl": {
"h": 257.802,
"s": 56.522,
"l": 31.569
},
"oklch": {
"l": 0.34991,
"c": 0.14424,
"h": 290.6
},
"luminance": 0.03733
}Semantic roles & 50–950 ramp
primary
#3E237E
secondary
#93B04C
accent
#E048B3
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F