#3E228E#3E228E
#3E228E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.165 H 286.9°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).
Color values
| HEX | #3E228E |
|---|---|
| RGB | rgb(62, 34, 142) |
| HSL | hsl(256, 61%, 35%) |
| HSV | hsv(256, 76%, 56%) |
| CMYK | cmyk(56.3%, 76.1%, 0%, 44.3%) |
| CIE-LAB | lab(24.07, 41.18, -54.98) |
| CIE-LCH | lch(24.07, 68.69, 306.83°) |
| OKLab | oklab(36.37% 0.0479 -0.1582) |
| OKLCH | oklch(36.37% 0.165 286.9) |
| XYZ | xyz(7.4397, 4.1208, 25.9893) |
| Luminance | 0.0412 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 5.16
Royal
#0C1793
ΔE00 5.20
Indigo (survey)
#380282
ΔE00 5.24
Indigo
#4B0082
ΔE00 5.74
Cobalt Blue
#030AA7
ΔE00 6.48
Midnight Blue
#191970
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E228E #728E22
analogous
#223C8E #3E228E #74228E
triadic
#3E228E #8E3E22 #228E3E
tetradic
#3E228E #8E223C #728E22 #228E74
square
#3E228E #8E223C #728E22 #228E74
split-complementary
#3E228E #8E7422 #3C8E22
monochromatic
#130A2B #28165D #3E228E #542EBF #7654D6
Accessibility & contrast
On white
11.51
#3E228E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#3E228E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E228E
11.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E228E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E228E | 1.00 | 11.51 | 1.82 | 11.51 |
| #FFFFFF | 11.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#1B4056
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3e228e; /* rgb */ color: rgb(62, 34, 142); /* oklch */ color: oklch(36.4% 0.165 286.9);
Tailwind
colors: {
custom: {
50: '#7d60b0',
500: '#3e228e',
950: '#000000',
},
}SCSS
$custom: #3e228e; $custom-light: #7d60b0; $custom-dark: #000000;
JSON
{
"hex": "#3e228e",
"rgb": {
"r": 62,
"g": 34,
"b": 142
},
"hsl": {
"h": 255.556,
"s": 61.364,
"l": 34.51
},
"oklch": {
"l": 0.36372,
"c": 0.1653,
"h": 286.9
},
"luminance": 0.04121
}Semantic roles & 50–950 ramp
primary
#3E228E
secondary
#9FBA52
accent
#E443BB
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980