#3F1F9E#3F1F9E
#3F1F9E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.187 H 284.5°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1F9E |
|---|---|
| RGB | rgb(63, 31, 158) |
| HSL | hsl(255, 67%, 37%) |
| HSV | hsv(255, 80%, 62%) |
| CMYK | cmyk(60.1%, 80.4%, 0%, 38%) |
| CIE-LAB | lab(25.27, 47.51, -62.84) |
| CIE-LCH | lch(25.27, 78.78, 307.09°) |
| OKLab | oklab(37.73% 0.047 -0.1811) |
| OKLCH | oklch(37.73% 0.187 284.5) |
| XYZ | xyz(8.7096, 4.5048, 32.7517) |
| Luminance | 0.0450 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.74
Ultramarine
#2000B1
ΔE00 4.94
Royal
#0C1793
ΔE00 5.14
Cobalt Blue
#030AA7
ΔE00 5.22
Royal Blue (survey)
#0504AA
ΔE00 5.46
Indigo (survey)
#380282
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1F9E #7E9E1F
analogous
#1F3F9E #3F1F9E #7F1F9E
triadic
#3F1F9E #9E3F1F #1F9E3F
tetradic
#3F1F9E #9E1F3F #7E9E1F #1F9E7F
square
#3F1F9E #9E1F3F #7E9E1F #1F9E7F
split-complementary
#3F1F9E #9E7F1F #3F9E1F
monochromatic
#160B38 #2B156B #3F1F9E #5329D1 #7B59DE
Accessibility & contrast
On white
11.05
#3F1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#3F1F9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1F9E
11.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1F9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1F9E | 1.00 | 11.05 | 1.90 | 11.05 |
| #FFFFFF | 11.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#01455F
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #3f1f9e; /* rgb */ color: rgb(63, 31, 158); /* oklch */ color: oklch(37.7% 0.187 284.5);
Tailwind
colors: {
custom: {
50: '#8060bc',
500: '#3f1f9e',
950: '#000000',
},
}SCSS
$custom: #3f1f9e; $custom-light: #8060bc; $custom-dark: #000000;
JSON
{
"hex": "#3f1f9e",
"rgb": {
"r": 63,
"g": 31,
"b": 158
},
"hsl": {
"h": 255.118,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.37729,
"c": 0.1871,
"h": 284.5
},
"luminance": 0.04505
}Semantic roles & 50–950 ramp
primary
#3F1F9E
secondary
#A7C256
accent
#EA3EBF
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981