#331ace
a balanced, electric blue · warm · closest name: blue
RGB
51, 26, 206
HSL
248°, 78%, 46%
CMYK
75, 87, 0, 19
Luminance
0.0590
Every format
| HEX | #331ace |
| RGB | rgb(51, 26, 206) |
| HSL | hsl(248, 78%, 46%) |
| CMYK | cmyk(75%, 87%, 0%, 19%) |
| LAB | lab(29.1 62.1 -85.1) |
| LCH | lch(29.1 105.3 306.1) |
| OKLCH | oklch(0.417 0.246 273.7) |
Copy-ready code
/* CSS */
color: #331ace;
background-color: #331ace;
/* Tailwind (arbitrary) */
class="text-[#331ace] bg-[#331ace]"
/* SCSS */
$brand: #331ace;
/* SwiftUI */
Color(red: 0.200, green: 0.102, blue: 0.808)
/* Android */
Color.parseColor("#331ace")Accessibility — WCAG contrast
Aa
#331ace on white: 9.63:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#331ace on black: 2.18:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red20.0%
Green10.2%
Blue80.8%
CMYK percentages
Cyan75.2%
Magenta87.4%
Yellow0.0%
Key (black)19.2%
Color previews
#331ace text on a black background
contrast 2.18:1
Card sample
#331ace text on a white background
contrast 9.63:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #331ace;
Background color
Panel with #331ace background
background-color: #331ace;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #331ace;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(51, 26, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 26, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #331ace; background: linear-gradient(135deg, #331ace, #AB1ACE);