#3D218D#3D218D
#3D218D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.165 H 286.7°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).
Color values
| HEX | #3D218D |
|---|---|
| RGB | rgb(61, 33, 141) |
| HSL | hsl(256, 62%, 34%) |
| HSV | hsv(256, 77%, 55%) |
| CMYK | cmyk(56.7%, 76.6%, 0%, 44.7%) |
| CIE-LAB | lab(23.68, 41.26, -55.00) |
| CIE-LCH | lch(23.68, 68.75, 306.87°) |
| OKLab | oklab(36.05% 0.0474 -0.1583) |
| OKLCH | oklch(36.05% 0.165 286.7) |
| XYZ | xyz(7.2746, 4.0025, 25.5834) |
| Luminance | 0.0400 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.00
Royal
#0C1793
ΔE00 5.04
Indigo Blue
#3A18B1
ΔE00 5.23
Indigo
#4B0082
ΔE00 5.59
Cobalt Blue
#030AA7
ΔE00 6.37
Midnight Blue
#191970
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D218D #718D21
analogous
#213B8D #3D218D #73218D
triadic
#3D218D #8D3D21 #218D3D
tetradic
#3D218D #8D213B #718D21 #218D73
square
#3D218D #8D213B #718D21 #218D73
split-complementary
#3D218D #8D7321 #3B8D21
monochromatic
#120A2A #28155B #3D218D #522DBF #7452D6
Accessibility & contrast
On white
11.66
#3D218D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#3D218D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D218D
11.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D218D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D218D | 1.00 | 11.66 | 1.80 | 11.66 |
| #FFFFFF | 11.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#193F55
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3d218d; /* rgb */ color: rgb(61, 33, 141); /* oklch */ color: oklch(36.0% 0.165 286.7);
Tailwind
colors: {
custom: {
50: '#7c60af',
500: '#3d218d',
950: '#000000',
},
}SCSS
$custom: #3d218d; $custom-light: #7c60af; $custom-dark: #000000;
JSON
{
"hex": "#3d218d",
"rgb": {
"r": 61,
"g": 33,
"b": 141
},
"hsl": {
"h": 255.556,
"s": 62.069,
"l": 34.118
},
"oklch": {
"l": 0.36045,
"c": 0.16523,
"h": 286.7
},
"luminance": 0.04003
}Semantic roles & 50–950 ramp
primary
#3D218D
secondary
#9EBA50
accent
#E543BB
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0A0511
muted
#7C7980