#3F1794#3F1794
#3F1794 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.182 H 287.6°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1794 |
|---|---|
| RGB | rgb(63, 23, 148) |
| HSL | hsl(259, 73%, 34%) |
| HSV | hsv(259, 84%, 58%) |
| CMYK | cmyk(57.4%, 84.5%, 0%, 42%) |
| CIE-LAB | lab(23.02, 48.14, -60.41) |
| CIE-LCH | lch(23.02, 77.25, 308.55°) |
| OKLab | oklab(35.86% 0.0552 -0.1739) |
| OKLCH | oklch(35.86% 0.182 287.6) |
| XYZ | xyz(7.7000, 3.8073, 28.3404) |
| Luminance | 0.0381 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.90
Indigo Blue
#3A18B1
ΔE00 4.06
Indigo
#4B0082
ΔE00 4.52
Royal
#0C1793
ΔE00 4.86
Ultramarine
#2000B1
ΔE00 5.06
Cobalt Blue
#030AA7
ΔE00 5.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1794 #6C9417
analogous
#172D94 #3F1794 #7D1794
triadic
#3F1794 #943F17 #17943F
tetradic
#3F1794 #94172D #6C9417 #17947D
square
#3F1794 #94172D #6C9417 #17947D
split-complementary
#3F1794 #947D17 #2D9417
monochromatic
#12072A #280F5F #3F1794 #561FC9 #7644E2
Accessibility & contrast
On white
11.92
#3F1794 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#3F1794 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1794
11.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1794 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1794 | 1.00 | 11.92 | 1.76 | 11.92 |
| #FFFFFF | 11.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003492
Tritanopia (blue-blind)
#173E57
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #3f1794; /* rgb */ color: rgb(63, 23, 148); /* oklch */ color: oklch(35.9% 0.182 287.6);
Tailwind
colors: {
custom: {
50: '#7f5bb5',
500: '#3f1794',
950: '#000000',
},
}SCSS
$custom: #3f1794; $custom-light: #7f5bb5; $custom-dark: #000000;
JSON
{
"hex": "#3f1794",
"rgb": {
"r": 63,
"g": 23,
"b": 148
},
"hsl": {
"h": 259.2,
"s": 73.099,
"l": 33.529
},
"oklch": {
"l": 0.35857,
"c": 0.18247,
"h": 287.6
},
"luminance": 0.03808
}Semantic roles & 50–950 ramp
primary
#3F1794
secondary
#9AC344
accent
#F038B5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980