#5146ef
a balanced, electric blue · warm · closest name: slateblue
RGB
81, 70, 239
HSL
244°, 84%, 61%
CMYK
66, 71, 0, 6
Luminance
0.1236
Every format
| HEX | #5146ef |
| RGB | rgb(81, 70, 239) |
| HSL | hsl(244, 84%, 61%) |
| CMYK | cmyk(66%, 71%, 0%, 6%) |
| LAB | lab(41.8 54.0 -83.0) |
| LCH | lch(41.8 99.0 303.0) |
| OKLCH | oklch(0.521 0.241 276.8) |
Copy-ready code
/* CSS */
color: #5146ef;
background-color: #5146ef;
/* Tailwind (arbitrary) */
class="text-[#5146ef] bg-[#5146ef]"
/* SCSS */
$brand: #5146ef;
/* SwiftUI */
Color(red: 0.318, green: 0.275, blue: 0.937)
/* Android */
Color.parseColor("#5146ef")Accessibility — WCAG contrast
Aa
#5146ef on white: 6.05:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#5146ef on black: 3.47:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.8%
Green27.5%
Blue93.7%
CMYK percentages
Cyan66.1%
Magenta70.7%
Yellow0.0%
Key (black)6.3%
Color previews
#5146ef text on a black background
contrast 3.47:1
Card sample
#5146ef text on a white background
contrast 6.05:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #5146ef;
Background color
Panel with #5146ef background
background-color: #5146ef;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #5146ef;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(81, 70, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 70, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5146ef; background: linear-gradient(135deg, #5146ef, #C246EF);