#3F1FA1#3F1FA1
#3F1FA1 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.191 H 284.0°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1FA1 |
|---|---|
| RGB | rgb(63, 31, 161) |
| HSL | hsl(255, 68%, 38%) |
| HSV | hsv(255, 81%, 63%) |
| CMYK | cmyk(60.9%, 80.7%, 0%, 36.9%) |
| CIE-LAB | lab(25.59, 48.38, -64.15) |
| CIE-LCH | lch(25.59, 80.34, 307.02°) |
| OKLab | oklab(38.04% 0.046 -0.1849) |
| OKLCH | oklch(38.04% 0.191 284) |
| XYZ | xyz(8.9709, 4.6093, 34.1283) |
| Luminance | 0.0461 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.36
Ultramarine
#2000B1
ΔE00 4.77
Cobalt Blue
#030AA7
ΔE00 5.16
Royal
#0C1793
ΔE00 5.28
Royal Blue (survey)
#0504AA
ΔE00 5.37
Violet Blue
#510AC9
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1FA1 #81A11F
analogous
#1F40A1 #3F1FA1 #801FA1
triadic
#3F1FA1 #A13F1F #1FA13F
tetradic
#3F1FA1 #A11F40 #81A11F #1FA180
square
#3F1FA1 #A11F40 #81A11F #1FA180
split-complementary
#3F1FA1 #A1801F #40A11F
monochromatic
#170B3A #2B156E #3F1FA1 #5329D4 #7C5BDF
Accessibility & contrast
On white
10.93
#3F1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#3F1FA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1FA1
10.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1FA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1FA1 | 1.00 | 10.93 | 1.92 | 10.93 |
| #FFFFFF | 10.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00389F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #3f1fa1; /* rgb */ color: rgb(63, 31, 161); /* oklch */ color: oklch(38.0% 0.191 284.0);
Tailwind
colors: {
custom: {
50: '#8160be',
500: '#3f1fa1',
950: '#000000',
},
}SCSS
$custom: #3f1fa1; $custom-light: #8160be; $custom-dark: #000000;
JSON
{
"hex": "#3f1fa1",
"rgb": {
"r": 63,
"g": 31,
"b": 161
},
"hsl": {
"h": 254.769,
"s": 67.708,
"l": 37.647
},
"oklch": {
"l": 0.38044,
"c": 0.19055,
"h": 284
},
"luminance": 0.0461
}Semantic roles & 50–950 ramp
primary
#3F1FA1
secondary
#A9C458
accent
#EB3DC0
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981