#321ac2
a dark, electric blue · warm · closest name: navy
RGB
50, 26, 194
HSL
249°, 76%, 43%
CMYK
74, 87, 0, 24
Luminance
0.0531
Every format
| HEX | #321ac2 |
| RGB | rgb(50, 26, 194) |
| HSL | hsl(249, 76%, 43%) |
| CMYK | cmyk(74%, 87%, 0%, 24%) |
| LAB | lab(27.6 58.8 -80.6) |
| LCH | lch(27.6 99.8 306.1) |
| OKLCH | oklch(0.403 0.234 274.5) |
Copy-ready code
/* CSS */
color: #321ac2;
background-color: #321ac2;
/* Tailwind (arbitrary) */
class="text-[#321ac2] bg-[#321ac2]"
/* SCSS */
$brand: #321ac2;
/* SwiftUI */
Color(red: 0.196, green: 0.102, blue: 0.761)
/* Android */
Color.parseColor("#321ac2")Accessibility — WCAG contrast
Aa
#321ac2 on white: 10.18:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#321ac2 on black: 2.06:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red19.6%
Green10.2%
Blue76.1%
CMYK percentages
Cyan74.2%
Magenta86.6%
Yellow0.0%
Key (black)23.9%
Color previews
#321ac2 text on a black background
contrast 2.06:1
Card sample
#321ac2 text on a white background
contrast 10.18:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #321ac2;
Background color
Panel with #321ac2 background
background-color: #321ac2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #321ac2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(50, 26, 194, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(50, 26, 194, 0.45);
Border & gradient
Gradient panel
border: 3px solid #321ac2; background: linear-gradient(135deg, #321ac2, #A21AC2);