#3D226C#3D226C
#3D226C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.1% C 0.122 H 295.8°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).
Color values
| HEX | #3D226C |
|---|---|
| RGB | rgb(61, 34, 108) |
| HSL | hsl(262, 52%, 28%) |
| HSV | hsv(262, 69%, 42%) |
| CMYK | cmyk(43.5%, 68.5%, 0%, 57.6%) |
| CIE-LAB | lab(20.90, 30.79, -38.59) |
| CIE-LCH | lch(20.90, 49.37, 308.59°) |
| OKLab | oklab(33.15% 0.0532 -0.1101) |
| OKLCH | oklch(33.15% 0.122 295.8) |
| XYZ | xyz(5.2026, 3.2188, 14.5316) |
| Luminance | 0.0322 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 6.25
Royal Purple (survey)
#4B006E
ΔE00 6.51
Indigo
#4B0082
ΔE00 7.05
Indigo (survey)
#380282
ΔE00 7.17
Dark Indigo
#1F0954
ΔE00 7.24
Darkslateblue
#483D8B
ΔE00 8.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D226C #516C22
analogous
#222C6C #3D226C #62226C
triadic
#3D226C #6C3D22 #226C3D
tetradic
#3D226C #6C222C #516C22 #226C62
square
#3D226C #6C222C #516C22 #226C62
split-complementary
#3D226C #6C6222 #2C6C22
monochromatic
#0D0717 #23133D #3D226C #57319B #7344C4
Accessibility & contrast
On white
12.78
#3D226C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#3D226C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D226C
12.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D226C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D226C | 1.00 | 12.78 | 1.64 | 12.78 |
| #FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#00316A
Tritanopia (blue-blind)
#313343
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #3d226c; /* rgb */ color: rgb(61, 34, 108); /* oklch */ color: oklch(33.1% 0.122 295.8);
Tailwind
colors: {
custom: {
50: '#775f97',
500: '#3d226c',
950: '#000000',
},
}SCSS
$custom: #3d226c; $custom-light: #775f97; $custom-dark: #000000;
JSON
{
"hex": "#3d226c",
"rgb": {
"r": 61,
"g": 34,
"b": 108
},
"hsl": {
"h": 261.892,
"s": 52.113,
"l": 27.843
},
"oklch": {
"l": 0.33145,
"c": 0.12228,
"h": 295.8
},
"luminance": 0.03219
}Semantic roles & 50–950 ramp
primary
#3D226C
secondary
#80A04A
accent
#DC4CA7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E