#3F1FA0#3F1FA0
#3F1FA0 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.189 H 284.2°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1FA0 |
|---|---|
| RGB | rgb(63, 31, 160) |
| HSL | hsl(255, 68%, 37%) |
| HSV | hsv(255, 81%, 63%) |
| CMYK | cmyk(60.6%, 80.6%, 0%, 37.3%) |
| CIE-LAB | lab(25.49, 48.09, -63.71) |
| CIE-LCH | lch(25.49, 79.82, 307.04°) |
| OKLab | oklab(37.94% 0.0463 -0.1837) |
| OKLCH | oklch(37.94% 0.189 284.2) |
| XYZ | xyz(8.8831, 4.5742, 33.6657) |
| Luminance | 0.0457 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.48
Ultramarine
#2000B1
ΔE00 4.82
Cobalt Blue
#030AA7
ΔE00 5.17
Royal
#0C1793
ΔE00 5.23
Royal Blue (survey)
#0504AA
ΔE00 5.39
Violet Blue
#510AC9
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1FA0 #80A01F
analogous
#1F3FA0 #3F1FA0 #801FA0
triadic
#3F1FA0 #A03F1F #1FA03F
tetradic
#3F1FA0 #A01F3F #80A01F #1FA080
square
#3F1FA0 #A01F3F #80A01F #1FA080
split-complementary
#3F1FA0 #A0801F #3FA01F
monochromatic
#170B39 #2B156D #3F1FA0 #5329D3 #7B5ADF
Accessibility & contrast
On white
10.97
#3F1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#3F1FA0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1FA0
10.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1FA0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1FA0 | 1.00 | 10.97 | 1.92 | 10.97 |
| #FFFFFF | 10.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A4
Deuteranopia (green-blind)
#00389E
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #3f1fa0; /* rgb */ color: rgb(63, 31, 160); /* oklch */ color: oklch(37.9% 0.189 284.2);
Tailwind
colors: {
custom: {
50: '#8160bd',
500: '#3f1fa0',
950: '#000000',
},
}SCSS
$custom: #3f1fa0; $custom-light: #8160bd; $custom-dark: #000000;
JSON
{
"hex": "#3f1fa0",
"rgb": {
"r": 63,
"g": 31,
"b": 160
},
"hsl": {
"h": 254.884,
"s": 67.539,
"l": 37.451
},
"oklch": {
"l": 0.37939,
"c": 0.18941,
"h": 284.2
},
"luminance": 0.04575
}Semantic roles & 50–950 ramp
primary
#3F1FA0
secondary
#A8C358
accent
#EA3DBF
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981