#3F159F#3F159F
#3F159F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.9% C 0.196 H 285.4°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).
Color values
| HEX | #3F159F |
|---|---|
| RGB | rgb(63, 21, 159) |
| HSL | hsl(258, 77%, 35%) |
| HSV | hsv(258, 87%, 62%) |
| CMYK | cmyk(60.4%, 86.8%, 0%, 37.6%) |
| CIE-LAB | lab(23.99, 51.89, -65.58) |
| CIE-LCH | lch(23.99, 83.63, 308.35°) |
| OKLab | oklab(36.88% 0.052 -0.189) |
| OKLCH | oklch(36.88% 0.196 285.4) |
| XYZ | xyz(8.5742, 4.0958, 33.1329) |
| Luminance | 0.0410 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.57
Ultramarine
#2000B1
ΔE00 3.92
Cobalt Blue
#030AA7
ΔE00 4.48
Royal Blue (survey)
#0504AA
ΔE00 4.57
Indigo (survey)
#380282
ΔE00 4.97
Royal
#0C1793
ΔE00 5.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F159F #759F15
analogous
#15309F #3F159F #84159F
triadic
#3F159F #9F3F15 #159F3F
tetradic
#3F159F #9F1530 #759F15 #159F84
square
#3F159F #9F1530 #759F15 #159F84
split-complementary
#3F159F #9F8415 #309F15
monochromatic
#140733 #2A0E69 #3F159F #541CD5 #7848E7
Accessibility & contrast
On white
11.54
#3F159F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#3F159F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F159F
11.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F159F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F159F | 1.00 | 11.54 | 1.82 | 11.54 |
| #FFFFFF | 11.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#00425E
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3f159f; /* rgb */ color: rgb(63, 21, 159); /* oklch */ color: oklch(36.9% 0.196 285.4);
Tailwind
colors: {
custom: {
50: '#815bbd',
500: '#3f159f',
950: '#000000',
},
}SCSS
$custom: #3f159f; $custom-light: #815bbd; $custom-dark: #000000;
JSON
{
"hex": "#3f159f",
"rgb": {
"r": 63,
"g": 21,
"b": 159
},
"hsl": {
"h": 258.261,
"s": 76.667,
"l": 35.294
},
"oklch": {
"l": 0.36875,
"c": 0.19598,
"h": 285.4
},
"luminance": 0.04096
}Semantic roles & 50–950 ramp
primary
#3F159F
secondary
#A1C848
accent
#F335B9
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981