#412477
a dark, vivid violet · warm · closest name: midnightblue
RGB
65, 36, 119
HSL
261°, 54%, 30%
CMYK
45, 70, 0, 53
Luminance
0.0372
Every format
| HEX | #412477 |
| RGB | rgb(65, 36, 119) |
| HSL | hsl(261, 54%, 30%) |
| CMYK | cmyk(45%, 70%, 0%, 53%) |
| LAB | lab(22.7 33.8 -42.7) |
| LCH | lch(22.7 54.4 308.3) |
| OKLCH | oklch(0.348 0.134 294.4) |
Copy-ready code
/* CSS */
color: #412477;
background-color: #412477;
/* Tailwind (arbitrary) */
class="text-[#412477] bg-[#412477]"
/* SCSS */
$brand: #412477;
/* SwiftUI */
Color(red: 0.255, green: 0.141, blue: 0.467)
/* Android */
Color.parseColor("#412477")Accessibility — WCAG contrast
Aa
#412477 on white: 12.04:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#412477 on black: 1.74:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.5%
Green14.1%
Blue46.7%
CMYK percentages
Cyan45.4%
Magenta69.7%
Yellow0.0%
Key (black)53.3%
Color previews
#412477 text on a black background
contrast 1.74:1
Card sample
#412477 text on a white background
contrast 12.04:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #412477;
Background color
Panel with #412477 background
background-color: #412477;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #412477;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(65, 36, 119, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(65, 36, 119, 0.45);
Border & gradient
Gradient panel
border: 3px solid #412477; background: linear-gradient(135deg, #412477, #772476);