#3B1F91#3B1F91
#3B1F91 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.172 H 285.0°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).
Color values
| HEX | #3B1F91 |
|---|---|
| RGB | rgb(59, 31, 145) |
| HSL | hsl(255, 65%, 35%) |
| HSV | hsv(255, 79%, 57%) |
| CMYK | cmyk(59.3%, 78.6%, 0%, 43.1%) |
| CIE-LAB | lab(23.52, 43.19, -57.76) |
| CIE-LCH | lch(23.52, 72.12, 306.79°) |
| OKLab | oklab(36% 0.0447 -0.1664) |
| OKLCH | oklch(36% 0.172 285) |
| XYZ | xyz(7.4029, 3.9537, 27.1556) |
| Luminance | 0.0395 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.49
Indigo Blue
#3A18B1
ΔE00 4.51
Indigo (survey)
#380282
ΔE00 4.82
Cobalt Blue
#030AA7
ΔE00 5.59
Indigo
#4B0082
ΔE00 5.64
Ultramarine
#2000B1
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B1F91 #75911F
analogous
#1F3C91 #3B1F91 #741F91
triadic
#3B1F91 #913B1F #1F913B
tetradic
#3B1F91 #911F3C #75911F #1F9174
square
#3B1F91 #911F3C #75911F #1F9174
split-complementary
#3B1F91 #91741F #3C911F
monochromatic
#12092C #26145F #3B1F91 #502AC3 #7251DA
Accessibility & contrast
On white
11.73
#3B1F91 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#3B1F91 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B1F91
11.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B1F91 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B1F91 | 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)
#003B94
Deuteranopia (green-blind)
#00348F
Tritanopia (blue-blind)
#0B4057
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3b1f91; /* rgb */ color: rgb(59, 31, 145); /* oklch */ color: oklch(36.0% 0.172 285.0);
Tailwind
colors: {
custom: {
50: '#7c5fb2',
500: '#3b1f91',
950: '#000000',
},
}SCSS
$custom: #3b1f91; $custom-light: #7c5fb2; $custom-dark: #000000;
JSON
{
"hex": "#3b1f91",
"rgb": {
"r": 59,
"g": 31,
"b": 145
},
"hsl": {
"h": 254.737,
"s": 64.773,
"l": 34.51
},
"oklch": {
"l": 0.36003,
"c": 0.17229,
"h": 285
},
"luminance": 0.03954
}Semantic roles & 50–950 ramp
primary
#3B1F91
secondary
#A2BD4F
accent
#E840BF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980