#3F1F96#3F1F96
#3F1F96 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.178 H 286.1°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1F96 |
|---|---|
| RGB | rgb(63, 31, 150) |
| HSL | hsl(256, 66%, 35%) |
| HSV | hsv(256, 79%, 59%) |
| CMYK | cmyk(58%, 79.3%, 0%, 41.2%) |
| CIE-LAB | lab(24.44, 45.19, -59.31) |
| CIE-LCH | lch(24.44, 74.56, 307.31°) |
| OKLab | oklab(36.9% 0.0495 -0.1708) |
| OKLCH | oklch(36.9% 0.178 286.1) |
| XYZ | xyz(8.0432, 4.2383, 29.2425) |
| Luminance | 0.0424 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.84
Royal
#0C1793
ΔE00 4.99
Indigo (survey)
#380282
ΔE00 5.19
Ultramarine
#2000B1
ΔE00 5.58
Cobalt Blue
#030AA7
ΔE00 5.60
Indigo
#4B0082
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1F96 #76961F
analogous
#1F3B96 #3F1F96 #7A1F96
triadic
#3F1F96 #963F1F #1F963F
tetradic
#3F1F96 #961F3B #76961F #1F967A
square
#3F1F96 #961F3B #76961F #1F967A
split-complementary
#3F1F96 #967A1F #3B961F
monochromatic
#140A31 #2A1563 #3F1F96 #5429C9 #7854DC
Accessibility & contrast
On white
11.36
#3F1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#3F1F96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1F96
11.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1F96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1F96 | 1.00 | 11.36 | 1.85 | 11.36 |
| #FFFFFF | 11.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003794
Tritanopia (blue-blind)
#14425A
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3f1f96; /* rgb */ color: rgb(63, 31, 150); /* oklch */ color: oklch(36.9% 0.178 286.1);
Tailwind
colors: {
custom: {
50: '#7f5fb6',
500: '#3f1f96',
950: '#000000',
},
}SCSS
$custom: #3f1f96; $custom-light: #7f5fb6; $custom-dark: #000000;
JSON
{
"hex": "#3f1f96",
"rgb": {
"r": 63,
"g": 31,
"b": 150
},
"hsl": {
"h": 256.134,
"s": 65.746,
"l": 35.49
},
"oklch": {
"l": 0.36903,
"c": 0.1778,
"h": 286.1
},
"luminance": 0.04239
}Semantic roles & 50–950 ramp
primary
#3F1F96
secondary
#A2BF52
accent
#E93FBB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980