#3A216E#3A216E
#3A216E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.8% C 0.126 H 293.1°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).
Color values
| HEX | #3A216E |
|---|---|
| RGB | rgb(58, 33, 110) |
| HSL | hsl(259, 54%, 28%) |
| HSV | hsv(259, 70%, 43%) |
| CMYK | cmyk(47.3%, 70%, 0%, 56.9%) |
| CIE-LAB | lab(20.49, 31.33, -40.56) |
| CIE-LCH | lch(20.49, 51.26, 307.68°) |
| OKLab | oklab(32.82% 0.0494 -0.116) |
| OKLCH | oklch(32.82% 0.126 293.1) |
| XYZ | xyz(5.1025, 3.1129, 15.0808) |
| Luminance | 0.0311 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 5.40
Indigo (survey)
#380282
ΔE00 6.61
Royal Purple (survey)
#4B006E
ΔE00 6.62
Indigo
#4B0082
ΔE00 6.83
Dark Indigo
#1F0954
ΔE00 6.92
Darkblue (survey)
#030764
ΔE00 8.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A216E #556E21
analogous
#212E6E #3A216E #60216E
triadic
#3A216E #6E3A21 #216E3A
tetradic
#3A216E #6E212E #556E21 #216E60
square
#3A216E #6E212E #556E21 #216E60
split-complementary
#3A216E #6E6021 #2E6E21
monochromatic
#0C0718 #21133F #3A216E #532F9D #6E43C7
Accessibility & contrast
On white
12.94
#3A216E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#3A216E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A216E
12.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A216E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A216E | 1.00 | 12.94 | 1.62 | 12.94 |
| #FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#00306C
Tritanopia (blue-blind)
#2B3444
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3a216e; /* rgb */ color: rgb(58, 33, 110); /* oklch */ color: oklch(32.8% 0.126 293.1);
Tailwind
colors: {
custom: {
50: '#755e98',
500: '#3a216e',
950: '#000000',
},
}SCSS
$custom: #3a216e; $custom-light: #755e98; $custom-dark: #000000;
JSON
{
"hex": "#3a216e",
"rgb": {
"r": 58,
"g": 33,
"b": 110
},
"hsl": {
"h": 259.481,
"s": 53.846,
"l": 28.039
},
"oklch": {
"l": 0.3282,
"c": 0.12613,
"h": 293.1
},
"luminance": 0.03113
}Semantic roles & 50–950 ramp
primary
#3A216E
secondary
#85A249
accent
#DD4BAE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E