#3A1F92#3A1F92
#3A1F92 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.174 H 284.3°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1F92 |
|---|---|
| RGB | rgb(58, 31, 146) |
| HSL | hsl(254, 65%, 35%) |
| HSV | hsv(254, 79%, 57%) |
| CMYK | cmyk(60.3%, 78.8%, 0%, 42.7%) |
| CIE-LAB | lab(23.52, 43.36, -58.38) |
| CIE-LCH | lch(23.52, 72.72, 306.61°) |
| OKLab | oklab(36.01% 0.0428 -0.1682) |
| OKLCH | oklch(36.01% 0.174 284.3) |
| XYZ | xyz(7.4216, 3.9544, 27.5607) |
| Luminance | 0.0396 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.33
Indigo Blue
#3A18B1
ΔE00 4.37
Indigo (survey)
#380282
ΔE00 4.90
Cobalt Blue
#030AA7
ΔE00 5.41
Ultramarine
#2000B1
ΔE00 5.71
Royal Blue (survey)
#0504AA
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1F92 #77921F
analogous
#1F3E92 #3A1F92 #741F92
triadic
#3A1F92 #923A1F #1F923A
tetradic
#3A1F92 #921F3E #77921F #1F9274
square
#3A1F92 #921F3E #77921F #1F9274
split-complementary
#3A1F92 #92741F #3E921F
monochromatic
#120A2D #261460 #3A1F92 #4E2AC4 #7151DA
Accessibility & contrast
On white
11.73
#3A1F92 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#3A1F92 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1F92
11.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1F92 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1F92 | 1.00 | 11.73 | 1.79 | 11.73 |
| #FFFFFF | 11.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B95
Deuteranopia (green-blind)
#003490
Tritanopia (blue-blind)
#024058
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3a1f92; /* rgb */ color: rgb(58, 31, 146); /* oklch */ color: oklch(36.0% 0.174 284.3);
Tailwind
colors: {
custom: {
50: '#7c5fb3',
500: '#3a1f92',
950: '#000000',
},
}SCSS
$custom: #3a1f92; $custom-light: #7c5fb3; $custom-dark: #000000;
JSON
{
"hex": "#3a1f92",
"rgb": {
"r": 58,
"g": 31,
"b": 146
},
"hsl": {
"h": 254.087,
"s": 64.972,
"l": 34.706
},
"oklch": {
"l": 0.36012,
"c": 0.1736,
"h": 284.3
},
"luminance": 0.03955
}Semantic roles & 50–950 ramp
primary
#3A1F92
secondary
#A3BD50
accent
#E840C0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980