#321dfd
a balanced, electric blue · warm · closest name: blue
RGB
50, 29, 253
HSL
246°, 98%, 55%
CMYK
80, 89, 0, 1
Luminance
0.0865
Every format
| HEX | #321dfd |
| RGB | rgb(50, 29, 253) |
| HSL | hsl(246, 98%, 55%) |
| CMYK | cmyk(80%, 89%, 0%, 1%) |
| LAB | lab(35.3 73.7 -101.7) |
| LCH | lch(35.3 125.6 305.9) |
| OKLCH | oklch(0.475 0.294 270.3) |
Copy-ready code
/* CSS */
color: #321dfd;
background-color: #321dfd;
/* Tailwind (arbitrary) */
class="text-[#321dfd] bg-[#321dfd]"
/* SCSS */
$brand: #321dfd;
/* SwiftUI */
Color(red: 0.196, green: 0.114, blue: 0.992)
/* Android */
Color.parseColor("#321dfd")Accessibility — WCAG contrast
Aa
#321dfd on white: 7.69:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#321dfd on black: 2.73:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red19.6%
Green11.4%
Blue99.2%
CMYK percentages
Cyan80.2%
Magenta88.5%
Yellow0.0%
Key (black)0.8%
Color previews
#321dfd text on a black background
contrast 2.73:1
Card sample
#321dfd text on a white background
contrast 7.69:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #321dfd;
Background color
Panel with #321dfd background
background-color: #321dfd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #321dfd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(50, 29, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(50, 29, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #321dfd; background: linear-gradient(135deg, #321dfd, #C71DFD);