#480df2
a balanced, electric violet · warm · closest name: blue
RGB
72, 13, 242
HSL
256°, 90%, 50%
CMYK
70, 95, 0, 5
Luminance
0.0808
Every format
| HEX | #480df2 |
| RGB | rgb(72, 13, 242) |
| HSL | hsl(256, 90%, 50%) |
| CMYK | cmyk(70%, 95%, 0%, 5%) |
| LAB | lab(34.1 75.4 -97.4) |
| LCH | lch(34.1 123.2 307.8) |
| OKLCH | oklch(0.468 0.283 277.1) |
Copy-ready code
/* CSS */
color: #480df2;
background-color: #480df2;
/* Tailwind (arbitrary) */
class="text-[#480df2] bg-[#480df2]"
/* SCSS */
$brand: #480df2;
/* SwiftUI */
Color(red: 0.282, green: 0.051, blue: 0.949)
/* Android */
Color.parseColor("#480df2")Accessibility — WCAG contrast
Aa
#480df2 on white: 8.03:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#480df2 on black: 2.62:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red28.2%
Green5.1%
Blue94.9%
CMYK percentages
Cyan70.2%
Magenta94.6%
Yellow0.0%
Key (black)5.1%
Color previews
#480df2 text on a black background
contrast 2.62:1
Card sample
#480df2 text on a white background
contrast 8.03:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #480df2;
Background color
Panel with #480df2 background
background-color: #480df2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #480df2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(72, 13, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(72, 13, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #480df2; background: linear-gradient(135deg, #480df2, #E10DF2);