#3F2398#3F2398
#3F2398 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.176 H 285.1°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).
Color values
| HEX | #3F2398 |
|---|---|
| RGB | rgb(63, 35, 152) |
| HSL | hsl(254, 63%, 37%) |
| HSV | hsv(254, 77%, 60%) |
| CMYK | cmyk(58.6%, 77%, 0%, 40.4%) |
| CIE-LAB | lab(25.34, 43.80, -59.07) |
| CIE-LCH | lch(25.34, 73.53, 306.56°) |
| OKLab | oklab(37.59% 0.046 -0.1701) |
| OKLCH | oklch(37.59% 0.176 285.1) |
| XYZ | xyz(8.3167, 4.5253, 30.1349) |
| Luminance | 0.0453 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.83
Royal
#0C1793
ΔE00 5.25
Ultramarine
#2000B1
ΔE00 5.94
Cobalt Blue
#030AA7
ΔE00 5.95
Indigo (survey)
#380282
ΔE00 6.03
Royal Blue (survey)
#0504AA
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F2398 #7C9823
analogous
#234298 #3F2398 #7A2398
triadic
#3F2398 #983F23 #23983F
tetradic
#3F2398 #982342 #7C9823 #23987A
square
#3F2398 #982342 #7C9823 #23987A
split-complementary
#3F2398 #987A23 #429823
monochromatic
#160C35 #2A1866 #3F2398 #542ECA #7A5CD9
Accessibility & contrast
On white
11.02
#3F2398 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#3F2398 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F2398
11.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F2398 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F2398 | 1.00 | 11.02 | 1.91 | 11.02 |
| #FFFFFF | 11.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#10445C
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #3f2398; /* rgb */ color: rgb(63, 35, 152); /* oklch */ color: oklch(37.6% 0.176 285.1);
Tailwind
colors: {
custom: {
50: '#7f62b7',
500: '#3f2398',
950: '#000000',
},
}SCSS
$custom: #3f2398; $custom-light: #7f62b7; $custom-dark: #000000;
JSON
{
"hex": "#3f2398",
"rgb": {
"r": 63,
"g": 35,
"b": 152
},
"hsl": {
"h": 254.359,
"s": 62.567,
"l": 36.667
},
"oklch": {
"l": 0.37589,
"c": 0.17625,
"h": 285.1
},
"luminance": 0.04526
}Semantic roles & 50–950 ramp
primary
#3F2398
secondary
#A6BE59
accent
#E642BF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980