#331cf4
a balanced, electric blue · warm · closest name: blue
RGB
51, 28, 244
HSL
246°, 91%, 53%
CMYK
79, 89, 0, 4
Luminance
0.0807
Every format
| HEX | #331cf4 |
| RGB | rgb(51, 28, 244) |
| HSL | hsl(246, 91%, 53%) |
| CMYK | cmyk(79%, 89%, 0%, 4%) |
| LAB | lab(34.1 71.7 -98.6) |
| LCH | lch(34.1 121.9 306.0) |
| OKLCH | oklch(0.465 0.285 271.0) |
Copy-ready code
/* CSS */
color: #331cf4;
background-color: #331cf4;
/* Tailwind (arbitrary) */
class="text-[#331cf4] bg-[#331cf4]"
/* SCSS */
$brand: #331cf4;
/* SwiftUI */
Color(red: 0.200, green: 0.110, blue: 0.957)
/* Android */
Color.parseColor("#331cf4")Accessibility — WCAG contrast
Aa
#331cf4 on white: 8.04:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#331cf4 on black: 2.61:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red20.0%
Green11.0%
Blue95.7%
CMYK percentages
Cyan79.1%
Magenta88.5%
Yellow0.0%
Key (black)4.3%
Color previews
#331cf4 text on a black background
contrast 2.61:1
Card sample
#331cf4 text on a white background
contrast 8.04:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #331cf4;
Background color
Panel with #331cf4 background
background-color: #331cf4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #331cf4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(51, 28, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 28, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #331cf4; background: linear-gradient(135deg, #331cf4, #C31CF4);