#5146cd
a balanced, vivid blue · warm · closest name: slateblue
RGB
81, 70, 205
HSL
245°, 57%, 54%
CMYK
61, 66, 0, 20
Luminance
0.1054
Every format
| HEX | #5146cd |
| RGB | rgb(81, 70, 205) |
| HSL | hsl(245, 57%, 54%) |
| CMYK | cmyk(61%, 66%, 0%, 20%) |
| LAB | lab(38.8 43.3 -68.5) |
| LCH | lch(38.8 81.0 302.3) |
| OKLCH | oklch(0.490 0.200 279.7) |
Copy-ready code
/* CSS */
color: #5146cd;
background-color: #5146cd;
/* Tailwind (arbitrary) */
class="text-[#5146cd] bg-[#5146cd]"
/* SCSS */
$brand: #5146cd;
/* SwiftUI */
Color(red: 0.318, green: 0.275, blue: 0.804)
/* Android */
Color.parseColor("#5146cd")Accessibility — WCAG contrast
Aa
#5146cd on white: 6.76:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#5146cd on black: 3.11:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.8%
Green27.5%
Blue80.4%
CMYK percentages
Cyan60.5%
Magenta65.9%
Yellow0.0%
Key (black)19.6%
Color previews
#5146cd text on a black background
contrast 3.11:1
Card sample
#5146cd text on a white background
contrast 6.76:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #5146cd;
Background color
Panel with #5146cd background
background-color: #5146cd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #5146cd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(81, 70, 205, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 70, 205, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5146cd; background: linear-gradient(135deg, #5146cd, #AB46CD);