#3A218C#3A218C
#3A218C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.164 H 285.2°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).
Color values
| HEX | #3A218C |
|---|---|
| RGB | rgb(58, 33, 140) |
| HSL | hsl(254, 62%, 34%) |
| HSV | hsv(254, 76%, 55%) |
| CMYK | cmyk(58.6%, 76.4%, 0%, 45.1%) |
| CIE-LAB | lab(23.27, 40.52, -55.06) |
| CIE-LCH | lch(23.27, 68.36, 306.35°) |
| OKLab | oklab(35.65% 0.0431 -0.1586) |
| OKLCH | oklch(35.65% 0.164 285.2) |
| XYZ | xyz(7.0210, 3.8803, 25.1849) |
| Luminance | 0.0388 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.68
Indigo (survey)
#380282
ΔE00 5.00
Indigo Blue
#3A18B1
ΔE00 5.36
Indigo
#4B0082
ΔE00 5.84
Midnight Blue
#191970
ΔE00 6.01
Cobalt Blue
#030AA7
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A218C #738C21
analogous
#213E8C #3A218C #70218C
triadic
#3A218C #8C3A21 #218C3A
tetradic
#3A218C #8C213E #738C21 #218C70
square
#3A218C #8C213E #738C21 #218C70
split-complementary
#3A218C #8C7021 #3E8C21
monochromatic
#110A29 #25155A #3A218C #4F2DBE #7051D6
Accessibility & contrast
On white
11.82
#3A218C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#3A218C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A218C
11.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A218C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A218C | 1.00 | 11.82 | 1.78 | 11.82 |
| #FFFFFF | 11.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#103F55
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #3a218c; /* rgb */ color: rgb(58, 33, 140); /* oklch */ color: oklch(35.7% 0.164 285.2);
Tailwind
colors: {
custom: {
50: '#7a5faf',
500: '#3a218c',
950: '#000000',
},
}SCSS
$custom: #3a218c; $custom-light: #7a5faf; $custom-dark: #000000;
JSON
{
"hex": "#3a218c",
"rgb": {
"r": 58,
"g": 33,
"b": 140
},
"hsl": {
"h": 254.019,
"s": 61.85,
"l": 33.922
},
"oklch": {
"l": 0.35654,
"c": 0.1643,
"h": 285.2
},
"luminance": 0.03881
}Semantic roles & 50–950 ramp
primary
#3A218C
secondary
#A1B94F
accent
#E543BF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0510
muted
#7C797F