#3F218C#3F218C
#3F218C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.164 H 288.1°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).
Color values
| HEX | #3F218C |
|---|---|
| RGB | rgb(63, 33, 140) |
| HSL | hsl(257, 62%, 34%) |
| HSV | hsv(257, 76%, 55%) |
| CMYK | cmyk(55%, 76.4%, 0%, 45.1%) |
| CIE-LAB | lab(23.80, 41.26, -54.18) |
| CIE-LCH | lch(23.80, 68.10, 307.29°) |
| OKLab | oklab(36.15% 0.0508 -0.1558) |
| OKLCH | oklch(36.15% 0.164 288.1) |
| XYZ | xyz(7.3260, 4.0376, 25.1992) |
| Luminance | 0.0404 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.97
Indigo
#4B0082
ΔE00 5.37
Royal
#0C1793
ΔE00 5.37
Indigo Blue
#3A18B1
ΔE00 5.42
Midnight Blue
#191970
ΔE00 6.57
Cobalt Blue
#030AA7
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F218C #6E8C21
analogous
#21398C #3F218C #75218C
triadic
#3F218C #8C3F21 #218C3F
tetradic
#3F218C #8C2139 #6E8C21 #218C75
square
#3F218C #8C2139 #6E8C21 #218C75
split-complementary
#3F218C #8C7521 #398C21
monochromatic
#120A29 #29155A #3F218C #552DBE #7751D6
Accessibility & contrast
On white
11.62
#3F218C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#3F218C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F218C
11.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F218C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F218C | 1.00 | 11.62 | 1.81 | 11.62 |
| #FFFFFF | 11.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00368A
Tritanopia (blue-blind)
#203F55
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3f218c; /* rgb */ color: rgb(63, 33, 140); /* oklch */ color: oklch(36.1% 0.164 288.1);
Tailwind
colors: {
custom: {
50: '#7d60af',
500: '#3f218c',
950: '#000000',
},
}SCSS
$custom: #3f218c; $custom-light: #7d60af; $custom-dark: #000000;
JSON
{
"hex": "#3f218c",
"rgb": {
"r": 63,
"g": 33,
"b": 140
},
"hsl": {
"h": 256.822,
"s": 61.85,
"l": 33.922
},
"oklch": {
"l": 0.36147,
"c": 0.16389,
"h": 288.1
},
"luminance": 0.04038
}Semantic roles & 50–950 ramp
primary
#3F218C
secondary
#9CB94F
accent
#E543B7
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F