#3F2298#3F2298
#3F2298 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.177 H 285.3°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).
Color values
| HEX | #3F2298 |
|---|---|
| RGB | rgb(63, 34, 152) |
| HSL | hsl(255, 63%, 36%) |
| HSV | hsv(255, 78%, 60%) |
| CMYK | cmyk(58.6%, 77.6%, 0%, 40.4%) |
| CIE-LAB | lab(25.16, 44.31, -59.36) |
| CIE-LCH | lch(25.16, 74.07, 306.74°) |
| OKLab | oklab(37.46% 0.0468 -0.171) |
| OKLCH | oklch(37.46% 0.177 285.3) |
| XYZ | xyz(8.2877, 4.4673, 30.1252) |
| Luminance | 0.0447 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.74
Royal
#0C1793
ΔE00 5.17
Ultramarine
#2000B1
ΔE00 5.80
Cobalt Blue
#030AA7
ΔE00 5.82
Indigo (survey)
#380282
ΔE00 5.85
Royal Blue (survey)
#0504AA
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F2298 #7B9822
analogous
#224098 #3F2298 #7A2298
triadic
#3F2298 #983F22 #22983F
tetradic
#3F2298 #982240 #7B9822 #22987A
square
#3F2298 #982240 #7B9822 #22987A
split-complementary
#3F2298 #987A22 #409822
monochromatic
#160C34 #2A1766 #3F2298 #542DCA #7A5ADA
Accessibility & contrast
On white
11.09
#3F2298 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#3F2298 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F2298
11.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F2298 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F2298 | 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)
#003F9B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#10445C
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #3f2298; /* rgb */ color: rgb(63, 34, 152); /* oklch */ color: oklch(37.5% 0.177 285.3);
Tailwind
colors: {
custom: {
50: '#7f61b7',
500: '#3f2298',
950: '#000000',
},
}SCSS
$custom: #3f2298; $custom-light: #7f61b7; $custom-dark: #000000;
JSON
{
"hex": "#3f2298",
"rgb": {
"r": 63,
"g": 34,
"b": 152
},
"hsl": {
"h": 254.746,
"s": 63.441,
"l": 36.471
},
"oklch": {
"l": 0.37464,
"c": 0.17725,
"h": 285.3
},
"luminance": 0.04468
}Semantic roles & 50–950 ramp
primary
#3F2298
secondary
#A5BE57
accent
#E641BE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980