#3F1F95#3F1F95
#3F1F95 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.177 H 286.4°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1F95 |
|---|---|
| RGB | rgb(63, 31, 149) |
| HSL | hsl(256, 66%, 35%) |
| HSV | hsv(256, 79%, 58%) |
| CMYK | cmyk(57.7%, 79.2%, 0%, 41.6%) |
| CIE-LAB | lab(24.34, 44.90, -58.86) |
| CIE-LCH | lch(24.34, 74.03, 307.34°) |
| OKLab | oklab(36.8% 0.0498 -0.1695) |
| OKLCH | oklch(36.8% 0.177 286.4) |
| XYZ | xyz(7.9631, 4.2062, 28.8202) |
| Luminance | 0.0421 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.98
Royal
#0C1793
ΔE00 4.99
Indigo (survey)
#380282
ΔE00 5.11
Indigo
#4B0082
ΔE00 5.59
Cobalt Blue
#030AA7
ΔE00 5.67
Ultramarine
#2000B1
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1F95 #75951F
analogous
#1F3A95 #3F1F95 #7A1F95
triadic
#3F1F95 #953F1F #1F953F
tetradic
#3F1F95 #951F3A #75951F #1F957A
square
#3F1F95 #951F3A #75951F #1F957A
split-complementary
#3F1F95 #957A1F #3A951F
monochromatic
#140A30 #2A1462 #3F1F95 #542AC8 #7853DB
Accessibility & contrast
On white
11.40
#3F1F95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#3F1F95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1F95
11.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1F95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1F95 | 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)
#003D98
Deuteranopia (green-blind)
#003693
Tritanopia (blue-blind)
#154159
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3f1f95; /* rgb */ color: rgb(63, 31, 149); /* oklch */ color: oklch(36.8% 0.177 286.4);
Tailwind
colors: {
custom: {
50: '#7f5fb5',
500: '#3f1f95',
950: '#000000',
},
}SCSS
$custom: #3f1f95; $custom-light: #7f5fb5; $custom-dark: #000000;
JSON
{
"hex": "#3f1f95",
"rgb": {
"r": 63,
"g": 31,
"b": 149
},
"hsl": {
"h": 256.271,
"s": 65.556,
"l": 35.294
},
"oklch": {
"l": 0.36801,
"c": 0.17663,
"h": 286.4
},
"luminance": 0.04207
}Semantic roles & 50–950 ramp
primary
#3F1F95
secondary
#A1BF51
accent
#E93FBB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980