#3A218E#3A218E
#3A218E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.167 H 284.8°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).
Color values
| HEX | #3A218E |
|---|---|
| RGB | rgb(58, 33, 142) |
| HSL | hsl(254, 62%, 34%) |
| HSV | hsv(254, 77%, 56%) |
| CMYK | cmyk(59.2%, 76.8%, 0%, 44.3%) |
| CIE-LAB | lab(23.47, 41.13, -55.98) |
| CIE-LCH | lch(23.47, 69.46, 306.31°) |
| OKLab | oklab(35.85% 0.0425 -0.1612) |
| OKLCH | oklch(35.85% 0.167 284.8) |
| XYZ | xyz(7.1698, 3.9398, 25.9686) |
| Luminance | 0.0394 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.58
Indigo Blue
#3A18B1
ΔE00 5.06
Indigo (survey)
#380282
ΔE00 5.07
Indigo
#4B0082
ΔE00 5.92
Cobalt Blue
#030AA7
ΔE00 6.00
Midnight Blue
#191970
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A218E #758E21
analogous
#213F8E #3A218E #71218E
triadic
#3A218E #8E3A21 #218E3A
tetradic
#3A218E #8E213F #758E21 #218E71
square
#3A218E #8E213F #758E21 #218E71
split-complementary
#3A218E #8E7121 #3F8E21
monochromatic
#110A2B #26155C #3A218E #4E2DC0 #7152D7
Accessibility & contrast
On white
11.74
#3A218E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#3A218E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A218E
11.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A218E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A218E | 1.00 | 11.74 | 1.79 | 11.74 |
| #FFFFFF | 11.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#0C4056
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3a218e; /* rgb */ color: rgb(58, 33, 142); /* oklch */ color: oklch(35.9% 0.167 284.8);
Tailwind
colors: {
custom: {
50: '#7b5fb0',
500: '#3a218e',
950: '#000000',
},
}SCSS
$custom: #3a218e; $custom-light: #7b5fb0; $custom-dark: #000000;
JSON
{
"hex": "#3a218e",
"rgb": {
"r": 58,
"g": 33,
"b": 142
},
"hsl": {
"h": 253.761,
"s": 62.286,
"l": 34.314
},
"oklch": {
"l": 0.35855,
"c": 0.16675,
"h": 284.8
},
"luminance": 0.0394
}Semantic roles & 50–950 ramp
primary
#3A218E
secondary
#A2BA50
accent
#E542C0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980