#5840df
a balanced, vivid blue · warm · closest name: slateblue
RGB
88, 64, 223
HSL
249°, 71%, 56%
CMYK
61, 71, 0, 13
Luminance
0.1107
Every format
| HEX | #5840df |
| RGB | rgb(88, 64, 223) |
| HSL | hsl(249, 71%, 56%) |
| CMYK | cmyk(61%, 71%, 0%, 13%) |
| LAB | lab(39.7 53.2 -77.3) |
| LCH | lch(39.7 93.9 304.5) |
| OKLCH | oklch(0.503 0.227 281.3) |
Copy-ready code
/* CSS */
color: #5840df;
background-color: #5840df;
/* Tailwind (arbitrary) */
class="text-[#5840df] bg-[#5840df]"
/* SCSS */
$brand: #5840df;
/* SwiftUI */
Color(red: 0.345, green: 0.251, blue: 0.875)
/* Android */
Color.parseColor("#5840df")Accessibility — WCAG contrast
Aa
#5840df on white: 6.53:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#5840df on black: 3.21:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red34.5%
Green25.1%
Blue87.5%
CMYK percentages
Cyan60.5%
Magenta71.3%
Yellow0.0%
Key (black)12.5%
Color previews
#5840df text on a black background
contrast 3.21:1
Card sample
#5840df text on a white background
contrast 6.53:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #5840df;
Background color
Panel with #5840df background
background-color: #5840df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #5840df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(88, 64, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(88, 64, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5840df; background: linear-gradient(135deg, #5840df, #C240DF);