#341c49
a deep, soft violet · warm · closest name: midnightblue
RGB
52, 28, 73
HSL
272°, 45%, 20%
CMYK
29, 62, 0, 71
Luminance
0.0204
Every format
| HEX | #341c49 |
| RGB | rgb(52, 28, 73) |
| HSL | hsl(272, 45%, 20%) |
| CMYK | cmyk(29%, 62%, 0%, 71%) |
| LAB | lab(15.7 21.9 -23.6) |
| LCH | lch(15.7 32.3 312.9) |
| OKLCH | oklch(0.283 0.083 306.5) |
Copy-ready code
/* CSS */
color: #341c49;
background-color: #341c49;
/* Tailwind (arbitrary) */
class="text-[#341c49] bg-[#341c49]"
/* SCSS */
$brand: #341c49;
/* SwiftUI */
Color(red: 0.204, green: 0.110, blue: 0.286)
/* Android */
Color.parseColor("#341c49")Accessibility — WCAG contrast
Aa
#341c49 on white: 14.91:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#341c49 on black: 1.41:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red20.4%
Green11.0%
Blue28.6%
CMYK percentages
Cyan28.8%
Magenta61.6%
Yellow0.0%
Key (black)71.4%
Color previews
#341c49 text on a black background
contrast 1.41:1
Card sample
#341c49 text on a white background
contrast 14.91:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #341c49;
Background color
Panel with #341c49 background
background-color: #341c49;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #341c49;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(52, 28, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(52, 28, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #341c49; background: linear-gradient(135deg, #341c49, #491C40);