#5145ba
a balanced, vivid blue · warm · closest name: slateblue
RGB
81, 69, 186
HSL
246°, 46%, 50%
CMYK
57, 63, 0, 27
Luminance
0.0955
Every format
| HEX | #5145ba |
| RGB | rgb(81, 69, 186) |
| HSL | hsl(246, 46%, 50%) |
| CMYK | cmyk(57%, 63%, 0%, 27%) |
| LAB | lab(37.0 37.9 -60.3) |
| LCH | lch(37.0 71.2 302.1) |
| OKLCH | oklch(0.473 0.177 281.9) |
Copy-ready code
/* CSS */
color: #5145ba;
background-color: #5145ba;
/* Tailwind (arbitrary) */
class="text-[#5145ba] bg-[#5145ba]"
/* SCSS */
$brand: #5145ba;
/* SwiftUI */
Color(red: 0.318, green: 0.271, blue: 0.729)
/* Android */
Color.parseColor("#5145ba")Accessibility — WCAG contrast
Aa
#5145ba on white: 7.22:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#5145ba on black: 2.91:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.8%
Green27.1%
Blue72.9%
CMYK percentages
Cyan56.5%
Magenta62.9%
Yellow0.0%
Key (black)27.1%
Color previews
#5145ba text on a black background
contrast 2.91:1
Card sample
#5145ba text on a white background
contrast 7.22:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #5145ba;
Background color
Panel with #5145ba background
background-color: #5145ba;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #5145ba;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(81, 69, 186, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 69, 186, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5145ba; background: linear-gradient(135deg, #5145ba, #9F45BA);