#3B1F99#3B1F99
#3B1F99 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.182 H 283.5°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).
Color values
| HEX | #3B1F99 |
|---|---|
| RGB | rgb(59, 31, 153) |
| HSL | hsl(254, 66%, 36%) |
| HSV | hsv(254, 80%, 60%) |
| CMYK | cmyk(61.4%, 79.7%, 0%, 40%) |
| CIE-LAB | lab(24.35, 45.58, -61.32) |
| CIE-LCH | lch(24.35, 76.40, 306.62°) |
| OKLab | oklab(36.83% 0.0423 -0.1768) |
| OKLCH | oklch(36.83% 0.182 283.5) |
| XYZ | xyz(8.0416, 4.2091, 30.5195) |
| Luminance | 0.0421 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.37
Royal
#0C1793
ΔE00 4.49
Cobalt Blue
#030AA7
ΔE00 5.03
Ultramarine
#2000B1
ΔE00 5.08
Royal Blue (survey)
#0504AA
ΔE00 5.34
Indigo (survey)
#380282
ΔE00 5.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B1F99 #7D991F
analogous
#1F4099 #3B1F99 #781F99
triadic
#3B1F99 #993B1F #1F993B
tetradic
#3B1F99 #991F40 #7D991F #1F9978
square
#3B1F99 #991F40 #7D991F #1F9978
split-complementary
#3B1F99 #99781F #40991F
monochromatic
#140A33 #271566 #3B1F99 #4F29CC #7556DD
Accessibility & contrast
On white
11.40
#3B1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#3B1F99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B1F99
11.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B1F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B1F99 | 1.00 | 11.40 | 1.84 | 11.40 |
| #FFFFFF | 11.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003697
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3b1f99; /* rgb */ color: rgb(59, 31, 153); /* oklch */ color: oklch(36.8% 0.182 283.5);
Tailwind
colors: {
custom: {
50: '#7d5fb8',
500: '#3b1f99',
950: '#000000',
},
}SCSS
$custom: #3b1f99; $custom-light: #7d5fb8; $custom-dark: #000000;
JSON
{
"hex": "#3b1f99",
"rgb": {
"r": 59,
"g": 31,
"b": 153
},
"hsl": {
"h": 253.77,
"s": 66.304,
"l": 36.078
},
"oklch": {
"l": 0.36834,
"c": 0.18178,
"h": 283.5
},
"luminance": 0.0421
}Semantic roles & 50–950 ramp
primary
#3B1F99
secondary
#A7C054
accent
#E93FC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981