#331cff
a balanced, electric blue · warm · closest name: blue
RGB
51, 28, 255
HSL
246°, 100%, 56%
CMYK
80, 89, 0, 0
Luminance
0.0875
Every format
| HEX | #331cff |
| RGB | rgb(51, 28, 255) |
| HSL | hsl(246, 100%, 56%) |
| CMYK | cmyk(80%, 89%, 0%, 0%) |
| LAB | lab(35.5 74.5 -102.5) |
| LCH | lch(35.5 126.7 306.0) |
| OKLCH | oklch(0.478 0.296 270.4) |
Copy-ready code
/* CSS */
color: #331cff;
background-color: #331cff;
/* Tailwind (arbitrary) */
class="text-[#331cff] bg-[#331cff]"
/* SCSS */
$brand: #331cff;
/* SwiftUI */
Color(red: 0.200, green: 0.110, blue: 1.000)
/* Android */
Color.parseColor("#331cff")Accessibility — WCAG contrast
Aa
#331cff on white: 7.63:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#331cff on black: 2.75:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red20.0%
Green11.0%
Blue100.0%
CMYK percentages
Cyan80.0%
Magenta89.0%
Yellow0.0%
Key (black)0.0%
Color previews
#331cff text on a black background
contrast 2.75:1
Card sample
#331cff text on a white background
contrast 7.63:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #331cff;
Background color
Panel with #331cff background
background-color: #331cff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #331cff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(51, 28, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 28, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #331cff; background: linear-gradient(135deg, #331cff, #CA1CFF);