#3D226F#3D226F
#3D226F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.4% C 0.126 H 294.7°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).
Color values
| HEX | #3D226F |
|---|---|
| RGB | rgb(61, 34, 111) |
| HSL | hsl(261, 53%, 28%) |
| HSV | hsv(261, 69%, 44%) |
| CMYK | cmyk(45%, 69.4%, 0%, 56.5%) |
| CIE-LAB | lab(21.15, 31.69, -40.13) |
| CIE-LCH | lch(21.15, 51.13, 308.30°) |
| OKLab | oklab(33.4% 0.0528 -0.1146) |
| OKLCH | oklch(33.4% 0.126 294.7) |
| XYZ | xyz(5.3650, 3.2837, 15.3870) |
| Luminance | 0.0328 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 5.96
Royal Purple (survey)
#4B006E
ΔE00 6.45
Indigo
#4B0082
ΔE00 6.70
Indigo (survey)
#380282
ΔE00 6.74
Dark Indigo
#1F0954
ΔE00 7.37
Darkslateblue
#483D8B
ΔE00 8.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D226F #546F22
analogous
#222D6F #3D226F #63226F
triadic
#3D226F #6F3D22 #226F3D
tetradic
#3D226F #6F222D #546F22 #226F63
square
#3D226F #6F222D #546F22 #226F63
split-complementary
#3D226F #6F6322 #2D6F22
monochromatic
#0D0717 #231440 #3D226F #57309E #7245C6
Accessibility & contrast
On white
12.68
#3D226F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#3D226F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D226F
12.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D226F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D226F | 1.00 | 12.68 | 1.66 | 12.68 |
| #FFFFFF | 12.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#00326D
Tritanopia (blue-blind)
#2F3445
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3d226f; /* rgb */ color: rgb(61, 34, 111); /* oklch */ color: oklch(33.4% 0.126 294.7);
Tailwind
colors: {
custom: {
50: '#775f99',
500: '#3d226f',
950: '#000000',
},
}SCSS
$custom: #3d226f; $custom-light: #775f99; $custom-dark: #000000;
JSON
{
"hex": "#3d226f",
"rgb": {
"r": 61,
"g": 34,
"b": 111
},
"hsl": {
"h": 261.039,
"s": 53.103,
"l": 28.431
},
"oklch": {
"l": 0.334,
"c": 0.12621,
"h": 294.7
},
"luminance": 0.03284
}Semantic roles & 50–950 ramp
primary
#3D226F
secondary
#84A24A
accent
#DD4BAA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050E
muted
#7B797E