#341c39
a deep, soft violet · warm · closest name: black
RGB
52, 28, 57
HSL
290°, 34%, 17%
CMYK
9, 51, 0, 78
Luminance
0.0186
Every format
| HEX | #341c39 |
| RGB | rgb(52, 28, 57) |
| HSL | hsl(290, 34%, 17%) |
| CMYK | cmyk(9%, 51%, 0%, 78%) |
| LAB | lab(14.7 17.7 -14.0) |
| LCH | lch(14.7 22.6 321.6) |
| OKLCH | oklch(0.272 0.061 320.5) |
Copy-ready code
/* CSS */
color: #341c39;
background-color: #341c39;
/* Tailwind (arbitrary) */
class="text-[#341c39] bg-[#341c39]"
/* SCSS */
$brand: #341c39;
/* SwiftUI */
Color(red: 0.204, green: 0.110, blue: 0.224)
/* Android */
Color.parseColor("#341c39")Accessibility — WCAG contrast
Aa
#341c39 on white: 15.32:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#341c39 on black: 1.37:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red20.4%
Green11.0%
Blue22.4%
CMYK percentages
Cyan8.8%
Magenta50.9%
Yellow0.0%
Key (black)77.6%
Color previews
#341c39 text on a black background
contrast 1.37:1
Card sample
#341c39 text on a white background
contrast 15.32:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #341c39;
Background color
Panel with #341c39 background
background-color: #341c39;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #341c39;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(52, 28, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(52, 28, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #341c39; background: linear-gradient(135deg, #341c39, #391C2B);