#3F1F9D#3F1F9D
#3F1F9D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.186 H 284.7°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1F9D |
|---|---|
| RGB | rgb(63, 31, 157) |
| HSL | hsl(255, 67%, 37%) |
| HSV | hsv(255, 80%, 62%) |
| CMYK | cmyk(59.9%, 80.3%, 0%, 38.4%) |
| CIE-LAB | lab(25.17, 47.22, -62.40) |
| CIE-LCH | lch(25.17, 78.26, 307.11°) |
| OKLab | oklab(37.63% 0.0473 -0.1798) |
| OKLCH | oklch(37.63% 0.186 284.7) |
| XYZ | xyz(8.6238, 4.4705, 32.3002) |
| Luminance | 0.0447 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.87
Ultramarine
#2000B1
ΔE00 5.01
Royal
#0C1793
ΔE00 5.11
Cobalt Blue
#030AA7
ΔE00 5.26
Royal Blue (survey)
#0504AA
ΔE00 5.49
Indigo (survey)
#380282
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1F9D #7D9D1F
analogous
#1F3E9D #3F1F9D #7E1F9D
triadic
#3F1F9D #9D3F1F #1F9D3F
tetradic
#3F1F9D #9D1F3E #7D9D1F #1F9D7E
square
#3F1F9D #9D1F3E #7D9D1F #1F9D7E
split-complementary
#3F1F9D #9D7E1F #3E9D1F
monochromatic
#160B37 #2A156A #3F1F9D #5429D0 #7A58DE
Accessibility & contrast
On white
11.09
#3F1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#3F1F9D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1F9D
11.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1F9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1F9D | 1.00 | 11.09 | 1.89 | 11.09 |
| #FFFFFF | 11.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00389B
Tritanopia (blue-blind)
#04445E
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #3f1f9d; /* rgb */ color: rgb(63, 31, 157); /* oklch */ color: oklch(37.6% 0.186 284.7);
Tailwind
colors: {
custom: {
50: '#8060bb',
500: '#3f1f9d',
950: '#000000',
},
}SCSS
$custom: #3f1f9d; $custom-light: #8060bb; $custom-dark: #000000;
JSON
{
"hex": "#3f1f9d",
"rgb": {
"r": 63,
"g": 31,
"b": 157
},
"hsl": {
"h": 255.238,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.37625,
"c": 0.18595,
"h": 284.7
},
"luminance": 0.04471
}Semantic roles & 50–950 ramp
primary
#3F1F9D
secondary
#A6C256
accent
#EA3EBE
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0B0512
muted
#7C7981