#321b49
a deep, vivid violet · warm · closest name: midnightblue
RGB
50, 27, 73
HSL
270°, 46%, 20%
CMYK
32, 63, 0, 71
Luminance
0.0194
Every format
| HEX | #321b49 |
| RGB | rgb(50, 27, 73) |
| HSL | hsl(270, 46%, 20%) |
| CMYK | cmyk(32%, 63%, 0%, 71%) |
| LAB | lab(15.2 22.0 -24.5) |
| LCH | lch(15.2 32.9 311.9) |
| OKLCH | oklch(0.278 0.084 304.6) |
Copy-ready code
/* CSS */
color: #321b49;
background-color: #321b49;
/* Tailwind (arbitrary) */
class="text-[#321b49] bg-[#321b49]"
/* SCSS */
$brand: #321b49;
/* SwiftUI */
Color(red: 0.196, green: 0.106, blue: 0.286)
/* Android */
Color.parseColor("#321b49")Accessibility — WCAG contrast
Aa
#321b49 on white: 15.12:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#321b49 on black: 1.39:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red19.6%
Green10.6%
Blue28.6%
CMYK percentages
Cyan31.5%
Magenta63.0%
Yellow0.0%
Key (black)71.4%
Color previews
#321b49 text on a black background
contrast 1.39:1
Card sample
#321b49 text on a white background
contrast 15.12:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #321b49;
Background color
Panel with #321b49 background
background-color: #321b49;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #321b49;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(50, 27, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(50, 27, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #321b49; background: linear-gradient(135deg, #321b49, #491B41);