#3A1FA1#3A1FA1
#3A1FA1 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.191 H 281.5°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1FA1 |
|---|---|
| RGB | rgb(58, 31, 161) |
| HSL | hsl(252, 68%, 38%) |
| HSV | hsv(252, 81%, 63%) |
| CMYK | cmyk(64%, 80.7%, 0%, 36.9%) |
| CIE-LAB | lab(25.11, 47.83, -64.95) |
| CIE-LCH | lch(25.11, 80.66, 306.37°) |
| OKLab | oklab(37.6% 0.0383 -0.1874) |
| OKLCH | oklch(37.6% 0.191 281.5) |
| XYZ | xyz(8.6659, 4.4521, 34.1140) |
| Luminance | 0.0445 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.31
Ultramarine
#2000B1
ΔE00 4.47
Cobalt Blue
#030AA7
ΔE00 4.67
Royal
#0C1793
ΔE00 4.71
Royal Blue (survey)
#0504AA
ΔE00 4.93
True Blue
#010FCC
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1FA1 #86A11F
analogous
#1F45A1 #3A1FA1 #7B1FA1
triadic
#3A1FA1 #A13A1F #1FA13A
tetradic
#3A1FA1 #A11F45 #86A11F #1FA17B
square
#3A1FA1 #A11F45 #86A11F #1FA17B
split-complementary
#3A1FA1 #A17B1F #45A11F
monochromatic
#150B3A #28156E #3A1FA1 #4C29D4 #765BDF
Accessibility & contrast
On white
11.11
#3A1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#3A1FA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1FA1
11.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1FA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1FA1 | 1.00 | 11.11 | 1.89 | 11.11 |
| #FFFFFF | 11.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00379F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #3a1fa1; /* rgb */ color: rgb(58, 31, 161); /* oklch */ color: oklch(37.6% 0.191 281.5);
Tailwind
colors: {
custom: {
50: '#7f5fbe',
500: '#3a1fa1',
950: '#000000',
},
}SCSS
$custom: #3a1fa1; $custom-light: #7f5fbe; $custom-dark: #000000;
JSON
{
"hex": "#3a1fa1",
"rgb": {
"r": 58,
"g": 31,
"b": 161
},
"hsl": {
"h": 252.462,
"s": 67.708,
"l": 37.647
},
"oklch": {
"l": 0.37595,
"c": 0.19128,
"h": 281.5
},
"luminance": 0.04453
}Semantic roles & 50–950 ramp
primary
#3A1FA1
secondary
#ADC458
accent
#EB3DC7
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981