#321df2
a balanced, electric blue · warm · closest name: blue
RGB
50, 29, 242
HSL
246°, 89%, 53%
CMYK
79, 88, 0, 5
Luminance
0.0797
Every format
| HEX | #321df2 |
| RGB | rgb(50, 29, 242) |
| HSL | hsl(246, 89%, 53%) |
| CMYK | cmyk(79%, 88%, 0%, 5%) |
| LAB | lab(33.9 70.8 -97.8) |
| LCH | lch(33.9 120.7 305.9) |
| OKLCH | oklch(0.462 0.283 270.9) |
Copy-ready code
/* CSS */
color: #321df2;
background-color: #321df2;
/* Tailwind (arbitrary) */
class="text-[#321df2] bg-[#321df2]"
/* SCSS */
$brand: #321df2;
/* SwiftUI */
Color(red: 0.196, green: 0.114, blue: 0.949)
/* Android */
Color.parseColor("#321df2")Accessibility — WCAG contrast
Aa
#321df2 on white: 8.10:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#321df2 on black: 2.59:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red19.6%
Green11.4%
Blue94.9%
CMYK percentages
Cyan79.3%
Magenta88.0%
Yellow0.0%
Key (black)5.1%
Color previews
#321df2 text on a black background
contrast 2.59:1
Card sample
#321df2 text on a white background
contrast 8.10:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #321df2;
Background color
Panel with #321df2 background
background-color: #321df2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #321df2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(50, 29, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(50, 29, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #321df2; background: linear-gradient(135deg, #321df2, #C01DF2);