#3E2170#3E2170
#3E2170 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.4% C 0.129 H 295.4°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).
Color values
| HEX | #3E2170 |
|---|---|
| RGB | rgb(62, 33, 112) |
| HSL | hsl(262, 54%, 28%) |
| HSV | hsv(262, 71%, 44%) |
| CMYK | cmyk(44.6%, 70.5%, 0%, 56.1%) |
| CIE-LAB | lab(21.14, 32.78, -40.78) |
| CIE-LCH | lch(21.14, 52.32, 308.79°) |
| OKLab | oklab(33.45% 0.0553 -0.1165) |
| OKLCH | oklch(33.45% 0.129 295.4) |
| XYZ | xyz(5.4543, 3.2816, 15.6721) |
| Luminance | 0.0328 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 6.02
Royal Purple (survey)
#4B006E
ΔE00 6.08
Indigo
#4B0082
ΔE00 6.28
Indigo (survey)
#380282
ΔE00 6.41
Dark Indigo
#1F0954
ΔE00 7.38
Darkslateblue
#483D8B
ΔE00 8.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E2170 #537021
analogous
#212B70 #3E2170 #652170
triadic
#3E2170 #703E21 #21703E
tetradic
#3E2170 #70212B #537021 #217065
square
#3E2170 #70212B #537021 #217065
split-complementary
#3E2170 #706521 #2B7021
monochromatic
#0D0718 #241341 #3E2170 #582F9F #7444C8
Accessibility & contrast
On white
12.68
#3E2170 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#3E2170 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E2170
12.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E2170 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E2170 | 1.00 | 12.68 | 1.66 | 12.68 |
| #FFFFFF | 12.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#00326E
Tritanopia (blue-blind)
#313445
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3e2170; /* rgb */ color: rgb(62, 33, 112); /* oklch */ color: oklch(33.4% 0.129 295.4);
Tailwind
colors: {
custom: {
50: '#785e9a',
500: '#3e2170',
950: '#000000',
},
}SCSS
$custom: #3e2170; $custom-light: #785e9a; $custom-dark: #000000;
JSON
{
"hex": "#3e2170",
"rgb": {
"r": 62,
"g": 33,
"b": 112
},
"hsl": {
"h": 262.025,
"s": 54.483,
"l": 28.431
},
"oklch": {
"l": 0.33448,
"c": 0.12899,
"h": 295.4
},
"luminance": 0.03282
}Semantic roles & 50–950 ramp
primary
#3E2170
secondary
#82A449
accent
#DE4AA8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E