#3A216A#3A216A
#3A216A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.121 H 294.4°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).
Color values
| HEX | #3A216A |
|---|---|
| RGB | rgb(58, 33, 106) |
| HSL | hsl(261, 53%, 27%) |
| HSV | hsv(261, 69%, 42%) |
| CMYK | cmyk(45.3%, 68.9%, 0%, 58.4%) |
| CIE-LAB | lab(20.15, 30.12, -38.51) |
| CIE-LCH | lch(20.15, 48.89, 308.03°) |
| OKLab | oklab(32.47% 0.05 -0.11) |
| OKLCH | oklch(32.47% 0.121 294.4) |
| XYZ | xyz(4.8896, 3.0277, 13.9597) |
| Luminance | 0.0303 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 5.82
Royal Purple (survey)
#4B006E
ΔE00 6.72
Dark Indigo
#1F0954
ΔE00 6.73
Indigo (survey)
#380282
ΔE00 7.19
Indigo
#4B0082
ΔE00 7.30
Darkblue (survey)
#030764
ΔE00 8.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A216A #516A21
analogous
#212D6A #3A216A #5F216A
triadic
#3A216A #6A3A21 #216A3A
tetradic
#3A216A #6A212D #516A21 #216A5F
square
#3A216A #6A212D #516A21 #216A5F
split-complementary
#3A216A #6A5F21 #2D6A21
monochromatic
#0D0717 #20123B #3A216A #543099 #6E41C4
Accessibility & contrast
On white
13.08
#3A216A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#3A216A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A216A
13.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A216A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A216A | 1.00 | 13.08 | 1.61 | 13.08 |
| #FFFFFF | 13.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#002F68
Tritanopia (blue-blind)
#2D3242
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3a216a; /* rgb */ color: rgb(58, 33, 106); /* oklch */ color: oklch(32.5% 0.121 294.4);
Tailwind
colors: {
custom: {
50: '#755e95',
500: '#3a216a',
950: '#000000',
},
}SCSS
$custom: #3a216a; $custom-light: #755e95; $custom-dark: #000000;
JSON
{
"hex": "#3a216a",
"rgb": {
"r": 58,
"g": 33,
"b": 106
},
"hsl": {
"h": 260.548,
"s": 52.518,
"l": 27.255
},
"oklch": {
"l": 0.32473,
"c": 0.12083,
"h": 294.4
},
"luminance": 0.03028
}Semantic roles & 50–950 ramp
primary
#3A216A
secondary
#819E49
accent
#DC4CAB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E