#3D218F#3D218F
#3D218F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.168 H 286.2°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).
Color values
| HEX | #3D218F |
|---|---|
| RGB | rgb(61, 33, 143) |
| HSL | hsl(255, 63%, 35%) |
| HSV | hsv(255, 77%, 56%) |
| CMYK | cmyk(57.3%, 76.9%, 0%, 43.9%) |
| CIE-LAB | lab(23.88, 41.85, -55.92) |
| CIE-LCH | lch(23.88, 69.85, 306.81°) |
| OKLab | oklab(36.24% 0.0469 -0.161) |
| OKLCH | oklch(36.24% 0.168 286.2) |
| XYZ | xyz(7.4248, 4.0626, 26.3742) |
| Luminance | 0.0406 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.93
Royal
#0C1793
ΔE00 4.95
Indigo (survey)
#380282
ΔE00 5.08
Indigo
#4B0082
ΔE00 5.69
Cobalt Blue
#030AA7
ΔE00 6.17
Ultramarine
#2000B1
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D218F #738F21
analogous
#213C8F #3D218F #74218F
triadic
#3D218F #8F3D21 #218F3D
tetradic
#3D218F #8F213C #738F21 #218F74
square
#3D218F #8F213C #738F21 #218F74
split-complementary
#3D218F #8F7421 #3C8F21
monochromatic
#130A2C #28165D #3D218F #522CC1 #7553D7
Accessibility & contrast
On white
11.59
#3D218F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#3D218F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D218F
11.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D218F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D218F | 1.00 | 11.59 | 1.81 | 11.59 |
| #FFFFFF | 11.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#174057
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3d218f; /* rgb */ color: rgb(61, 33, 143); /* oklch */ color: oklch(36.2% 0.168 286.2);
Tailwind
colors: {
custom: {
50: '#7c60b1',
500: '#3d218f',
950: '#000000',
},
}SCSS
$custom: #3d218f; $custom-light: #7c60b1; $custom-dark: #000000;
JSON
{
"hex": "#3d218f",
"rgb": {
"r": 61,
"g": 33,
"b": 143
},
"hsl": {
"h": 255.273,
"s": 62.5,
"l": 34.51
},
"oklch": {
"l": 0.36244,
"c": 0.16766,
"h": 286.2
},
"luminance": 0.04063
}Semantic roles & 50–950 ramp
primary
#3D218F
secondary
#A0BB51
accent
#E642BC
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980