#3D218C#3D218C
#3D218C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.164 H 286.9°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).
Color values
| HEX | #3D218C |
|---|---|
| RGB | rgb(61, 33, 140) |
| HSL | hsl(256, 62%, 34%) |
| HSV | hsv(256, 76%, 55%) |
| CMYK | cmyk(56.4%, 76.4%, 0%, 45.1%) |
| CIE-LAB | lab(23.58, 40.95, -54.54) |
| CIE-LCH | lch(23.58, 68.20, 306.90°) |
| OKLab | oklab(35.95% 0.0477 -0.1569) |
| OKLCH | oklch(35.95% 0.164 286.9) |
| XYZ | xyz(7.2005, 3.9729, 25.1933) |
| Luminance | 0.0397 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.96
Royal
#0C1793
ΔE00 5.09
Indigo Blue
#3A18B1
ΔE00 5.38
Indigo
#4B0082
ΔE00 5.55
Midnight Blue
#191970
ΔE00 6.34
Cobalt Blue
#030AA7
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D218C #708C21
analogous
#213B8C #3D218C #73218C
triadic
#3D218C #8C3D21 #218C3D
tetradic
#3D218C #8C213B #708C21 #218C73
square
#3D218C #8C213B #708C21 #218C73
split-complementary
#3D218C #8C7321 #3B8C21
monochromatic
#120A29 #27155A #3D218C #532DBE #7451D6
Accessibility & contrast
On white
11.70
#3D218C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#3D218C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D218C
11.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D218C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D218C | 1.00 | 11.70 | 1.79 | 11.70 |
| #FFFFFF | 11.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#1A3F55
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3d218c; /* rgb */ color: rgb(61, 33, 140); /* oklch */ color: oklch(35.9% 0.164 286.9);
Tailwind
colors: {
custom: {
50: '#7c60af',
500: '#3d218c',
950: '#000000',
},
}SCSS
$custom: #3d218c; $custom-light: #7c60af; $custom-dark: #000000;
JSON
{
"hex": "#3d218c",
"rgb": {
"r": 61,
"g": 33,
"b": 140
},
"hsl": {
"h": 255.701,
"s": 61.85,
"l": 33.922
},
"oklch": {
"l": 0.35946,
"c": 0.16402,
"h": 286.9
},
"luminance": 0.03973
}Semantic roles & 50–950 ramp
primary
#3D218C
secondary
#9EB94F
accent
#E543BB
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0A0510
muted
#7C797F