#3F1FA5#3F1FA5
#3F1FA5 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.195 H 283.2°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1FA5 |
|---|---|
| RGB | rgb(63, 31, 165) |
| HSL | hsl(254, 68%, 38%) |
| HSV | hsv(254, 81%, 65%) |
| CMYK | cmyk(61.8%, 81.2%, 0%, 35.3%) |
| CIE-LAB | lab(26.02, 49.53, -65.87) |
| CIE-LCH | lch(26.02, 82.42, 306.94°) |
| OKLab | oklab(38.47% 0.0447 -0.1899) |
| OKLCH | oklch(38.47% 0.195 283.2) |
| XYZ | xyz(9.3293, 4.7527, 36.0158) |
| Luminance | 0.0475 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 1.89
Ultramarine
#2000B1
ΔE00 4.60
Cobalt Blue
#030AA7
ΔE00 5.13
Royal Blue (survey)
#0504AA
ΔE00 5.31
Violet Blue
#510AC9
ΔE00 5.31
Royal
#0C1793
ΔE00 5.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1FA5 #85A51F
analogous
#1F42A5 #3F1FA5 #821FA5
triadic
#3F1FA5 #A53F1F #1FA53F
tetradic
#3F1FA5 #A51F42 #85A51F #1FA582
square
#3F1FA5 #A51F42 #85A51F #1FA582
split-complementary
#3F1FA5 #A5821F #42A51F
monochromatic
#180C3E #2B1571 #3F1FA5 #532AD7 #7D5EE1
Accessibility & contrast
On white
10.77
#3F1FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.95
#3F1FA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1FA5
10.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1FA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1FA5 | 1.00 | 10.77 | 1.95 | 10.77 |
| #FFFFFF | 10.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042A9
Deuteranopia (green-blind)
#0039A3
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #3f1fa5; /* rgb */ color: rgb(63, 31, 165); /* oklch */ color: oklch(38.5% 0.195 283.2);
Tailwind
colors: {
custom: {
50: '#8260c1',
500: '#3f1fa5',
950: '#000000',
},
}SCSS
$custom: #3f1fa5; $custom-light: #8260c1; $custom-dark: #000000;
JSON
{
"hex": "#3f1fa5",
"rgb": {
"r": 63,
"g": 31,
"b": 165
},
"hsl": {
"h": 254.328,
"s": 68.367,
"l": 38.431
},
"oklch": {
"l": 0.38466,
"c": 0.19514,
"h": 283.2
},
"luminance": 0.04753
}Semantic roles & 50–950 ramp
primary
#3F1FA5
secondary
#ACC55B
accent
#EB3DC2
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0512
muted
#7D7981