#3E227E#3E227E
#3E227E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.145 H 290.8°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).
Color values
| HEX | #3E227E |
|---|---|
| RGB | rgb(62, 34, 126) |
| HSL | hsl(258, 58%, 31%) |
| HSV | hsv(258, 73%, 49%) |
| CMYK | cmyk(50.8%, 73%, 0%, 50.6%) |
| CIE-LAB | lab(22.56, 36.38, -47.41) |
| CIE-LCH | lch(22.56, 59.76, 307.50°) |
| OKLab | oklab(34.85% 0.0517 -0.136) |
| OKLCH | oklch(34.85% 0.146 290.8) |
| XYZ | xyz(6.3235, 3.6743, 20.1106) |
| Luminance | 0.0367 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.31
Indigo
#4B0082
ΔE00 5.55
Midnight Blue
#191970
ΔE00 5.68
Royal
#0C1793
ΔE00 6.55
Royal Purple (survey)
#4B006E
ΔE00 6.78
Darkslateblue
#483D8B
ΔE00 7.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E227E #627E22
analogous
#22347E #3E227E #6C227E
triadic
#3E227E #7E3E22 #227E3E
tetradic
#3E227E #7E2234 #627E22 #227E6C
square
#3E227E #7E2234 #627E22 #227E6C
split-complementary
#3E227E #7E6C22 #347E22
monochromatic
#0F081E #26154E #3E227E #562FAE #744CCF
Accessibility & contrast
On white
12.10
#3E227E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#3E227E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E227E
12.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E227E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E227E | 1.00 | 12.10 | 1.74 | 12.10 |
| #FFFFFF | 12.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#293A4D
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3e227e; /* rgb */ color: rgb(62, 34, 126); /* oklch */ color: oklch(34.8% 0.145 290.8);
Tailwind
colors: {
custom: {
50: '#7a60a4',
500: '#3e227e',
950: '#000000',
},
}SCSS
$custom: #3e227e; $custom-light: #7a60a4; $custom-dark: #000000;
JSON
{
"hex": "#3e227e",
"rgb": {
"r": 62,
"g": 34,
"b": 126
},
"hsl": {
"h": 258.261,
"s": 57.5,
"l": 31.373
},
"oklch": {
"l": 0.34847,
"c": 0.1455,
"h": 290.8
},
"luminance": 0.03675
}Semantic roles & 50–950 ramp
primary
#3E227E
secondary
#92B14B
accent
#E147B2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F