#5145bc
a balanced, vivid blue · warm · closest name: slateblue
RGB
81, 69, 188
HSL
246°, 47%, 50%
CMYK
57, 63, 0, 26
Luminance
0.0964
Every format
| HEX | #5145bc |
| RGB | rgb(81, 69, 188) |
| HSL | hsl(246, 47%, 50%) |
| CMYK | cmyk(57%, 63%, 0%, 26%) |
| LAB | lab(37.2 38.5 -61.2) |
| LCH | lch(37.2 72.3 302.2) |
| OKLCH | oklch(0.475 0.180 281.6) |
Copy-ready code
/* CSS */
color: #5145bc;
background-color: #5145bc;
/* Tailwind (arbitrary) */
class="text-[#5145bc] bg-[#5145bc]"
/* SCSS */
$brand: #5145bc;
/* SwiftUI */
Color(red: 0.318, green: 0.271, blue: 0.737)
/* Android */
Color.parseColor("#5145bc")Accessibility — WCAG contrast
Aa
#5145bc on white: 7.17:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#5145bc on black: 2.93:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.8%
Green27.1%
Blue73.7%
CMYK percentages
Cyan56.9%
Magenta63.3%
Yellow0.0%
Key (black)26.3%
Color previews
#5145bc text on a black background
contrast 2.93:1
Card sample
#5145bc text on a white background
contrast 7.17:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #5145bc;
Background color
Panel with #5145bc background
background-color: #5145bc;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #5145bc;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(81, 69, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 69, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5145bc; background: linear-gradient(135deg, #5145bc, #A045BC);