#3D218E#3D218E
#3D218E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.166 H 286.5°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).
Color values
| HEX | #3D218E |
|---|---|
| RGB | rgb(61, 33, 142) |
| HSL | hsl(255, 62%, 34%) |
| HSV | hsv(255, 77%, 56%) |
| CMYK | cmyk(57%, 76.8%, 0%, 44.3%) |
| CIE-LAB | lab(23.78, 41.55, -55.46) |
| CIE-LCH | lch(23.78, 69.30, 306.84°) |
| OKLab | oklab(36.14% 0.0472 -0.1596) |
| OKLCH | oklch(36.14% 0.166 286.5) |
| XYZ | xyz(7.3493, 4.0324, 25.9770) |
| Luminance | 0.0403 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.99
Indigo (survey)
#380282
ΔE00 5.04
Indigo Blue
#3A18B1
ΔE00 5.08
Indigo
#4B0082
ΔE00 5.64
Cobalt Blue
#030AA7
ΔE00 6.27
Midnight Blue
#191970
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D218E #728E21
analogous
#213C8E #3D218E #74218E
triadic
#3D218E #8E3D21 #218E3D
tetradic
#3D218E #8E213C #728E21 #218E74
square
#3D218E #8E213C #728E21 #218E74
split-complementary
#3D218E #8E7421 #3C8E21
monochromatic
#120A2B #28155C #3D218E #522DC0 #7552D7
Accessibility & contrast
On white
11.62
#3D218E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#3D218E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D218E
11.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D218E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D218E | 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)
#003B91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#183F56
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3d218e; /* rgb */ color: rgb(61, 33, 142); /* oklch */ color: oklch(36.1% 0.166 286.5);
Tailwind
colors: {
custom: {
50: '#7c60b0',
500: '#3d218e',
950: '#000000',
},
}SCSS
$custom: #3d218e; $custom-light: #7c60b0; $custom-dark: #000000;
JSON
{
"hex": "#3d218e",
"rgb": {
"r": 61,
"g": 33,
"b": 142
},
"hsl": {
"h": 255.413,
"s": 62.286,
"l": 34.314
},
"oklch": {
"l": 0.36144,
"c": 0.16645,
"h": 286.5
},
"luminance": 0.04033
}Semantic roles & 50–950 ramp
primary
#3D218E
secondary
#9FBA50
accent
#E542BC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980