#3A1F91#3A1F91
#3A1F91 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.172 H 284.5°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1F91 |
|---|---|
| RGB | rgb(58, 31, 145) |
| HSL | hsl(254, 65%, 35%) |
| HSV | hsv(254, 79%, 57%) |
| CMYK | cmyk(60%, 78.6%, 0%, 43.1%) |
| CIE-LAB | lab(23.42, 43.06, -57.93) |
| CIE-LCH | lch(23.42, 72.18, 306.63°) |
| OKLab | oklab(35.91% 0.0431 -0.1669) |
| OKLCH | oklch(35.91% 0.172 284.5) |
| XYZ | xyz(7.3442, 3.9234, 27.1529) |
| Luminance | 0.0392 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.35
Indigo Blue
#3A18B1
ΔE00 4.51
Indigo (survey)
#380282
ΔE00 4.84
Cobalt Blue
#030AA7
ΔE00 5.50
Indigo
#4B0082
ΔE00 5.73
Ultramarine
#2000B1
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1F91 #76911F
analogous
#1F3D91 #3A1F91 #731F91
triadic
#3A1F91 #913A1F #1F913A
tetradic
#3A1F91 #911F3D #76911F #1F9173
square
#3A1F91 #911F3D #76911F #1F9173
split-complementary
#3A1F91 #91731F #3D911F
monochromatic
#12092C #26145F #3A1F91 #4E2AC3 #7151DA
Accessibility & contrast
On white
11.77
#3A1F91 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#3A1F91 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1F91
11.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1F91 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1F91 | 1.00 | 11.77 | 1.78 | 11.77 |
| #FFFFFF | 11.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00348F
Tritanopia (blue-blind)
#054057
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3a1f91; /* rgb */ color: rgb(58, 31, 145); /* oklch */ color: oklch(35.9% 0.172 284.5);
Tailwind
colors: {
custom: {
50: '#7b5eb2',
500: '#3a1f91',
950: '#000000',
},
}SCSS
$custom: #3a1f91; $custom-light: #7b5eb2; $custom-dark: #000000;
JSON
{
"hex": "#3a1f91",
"rgb": {
"r": 58,
"g": 31,
"b": 145
},
"hsl": {
"h": 254.211,
"s": 64.773,
"l": 34.51
},
"oklch": {
"l": 0.35908,
"c": 0.1724,
"h": 284.5
},
"luminance": 0.03924
}Semantic roles & 50–950 ramp
primary
#3A1F91
secondary
#A3BD4F
accent
#E840C0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980