#3A219F#3A219F
#3A219F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.187 H 281.6°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).
Color values
| HEX | #3A219F |
|---|---|
| RGB | rgb(58, 33, 159) |
| HSL | hsl(252, 66%, 38%) |
| HSV | hsv(252, 79%, 62%) |
| CMYK | cmyk(63.5%, 79.2%, 0%, 37.6%) |
| CIE-LAB | lab(25.23, 46.28, -63.54) |
| CIE-LCH | lch(25.23, 78.61, 306.07°) |
| OKLab | oklab(37.61% 0.0378 -0.1833) |
| OKLCH | oklch(37.61% 0.187 281.6) |
| XYZ | xyz(8.5448, 4.4898, 33.2105) |
| Luminance | 0.0449 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.73
Royal
#0C1793
ΔE00 4.72
Ultramarine
#2000B1
ΔE00 4.88
Cobalt Blue
#030AA7
ΔE00 4.96
Royal Blue (survey)
#0504AA
ΔE00 5.26
True Blue
#010FCC
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A219F #869F21
analogous
#21479F #3A219F #79219F
triadic
#3A219F #9F3A21 #219F3A
tetradic
#3A219F #9F2147 #869F21 #219F79
square
#3A219F #9F2147 #869F21 #219F79
split-complementary
#3A219F #9F7921 #479F21
monochromatic
#150C3A #28166C #3A219F #4C2CD2 #765DDD
Accessibility & contrast
On white
11.06
#3A219F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#3A219F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A219F
11.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A219F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A219F | 1.00 | 11.06 | 1.90 | 11.06 |
| #FFFFFF | 11.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00379D
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #3a219f; /* rgb */ color: rgb(58, 33, 159); /* oklch */ color: oklch(37.6% 0.187 281.6);
Tailwind
colors: {
custom: {
50: '#7e60bd',
500: '#3a219f',
950: '#000000',
},
}SCSS
$custom: #3a219f; $custom-light: #7e60bd; $custom-dark: #000000;
JSON
{
"hex": "#3a219f",
"rgb": {
"r": 58,
"g": 33,
"b": 159
},
"hsl": {
"h": 251.905,
"s": 65.625,
"l": 37.647
},
"oklch": {
"l": 0.37612,
"c": 0.18718,
"h": 281.6
},
"luminance": 0.0449
}Semantic roles & 50–950 ramp
primary
#3A219F
secondary
#ADC25A
accent
#E93FC7
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981