#341f3d
a deep, soft violet · warm · closest name: black
RGB
52, 31, 61
HSL
282°, 33%, 18%
CMYK
15, 49, 0, 76
Luminance
0.0205
Every format
| HEX | #341f3d |
| RGB | rgb(52, 31, 61) |
| HSL | hsl(282, 33%, 18%) |
| CMYK | cmyk(15%, 49%, 0%, 76%) |
| LAB | lab(15.7 16.7 -15.3) |
| LCH | lch(15.7 22.6 317.5) |
| OKLCH | oklch(0.280 0.060 315.2) |
Copy-ready code
/* CSS */
color: #341f3d;
background-color: #341f3d;
/* Tailwind (arbitrary) */
class="text-[#341f3d] bg-[#341f3d]"
/* SCSS */
$brand: #341f3d;
/* SwiftUI */
Color(red: 0.204, green: 0.122, blue: 0.239)
/* Android */
Color.parseColor("#341f3d")Accessibility — WCAG contrast
Aa
#341f3d on white: 14.90:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#341f3d on black: 1.41:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red20.4%
Green12.2%
Blue23.9%
CMYK percentages
Cyan14.8%
Magenta49.2%
Yellow0.0%
Key (black)76.1%
Color previews
#341f3d text on a black background
contrast 1.41:1
Card sample
#341f3d text on a white background
contrast 14.90:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #341f3d;
Background color
Panel with #341f3d background
background-color: #341f3d;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #341f3d;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(52, 31, 61, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(52, 31, 61, 0.45);
Border & gradient
Gradient panel
border: 3px solid #341f3d; background: linear-gradient(135deg, #341f3d, #3D1F32);