#286df4
a balanced, electric blue · cool · closest name: royalblue
RGB
40, 109, 244
HSL
220°, 90%, 56%
CMYK
84, 55, 0, 4
Luminance
0.1792
Every format
| HEX | #286df4 |
| RGB | rgb(40, 109, 244) |
| HSL | hsl(220, 90%, 56%) |
| CMYK | cmyk(84%, 55%, 0%, 4%) |
| LAB | lab(49.4 28.2 -73.4) |
| LCH | lch(49.4 78.7 291.0) |
| OKLCH | oklch(0.574 0.214 261.9) |
Copy-ready code
/* CSS */
color: #286df4;
background-color: #286df4;
/* Tailwind (arbitrary) */
class="text-[#286df4] bg-[#286df4]"
/* SCSS */
$brand: #286df4;
/* SwiftUI */
Color(red: 0.157, green: 0.427, blue: 0.957)
/* Android */
Color.parseColor("#286df4")Accessibility — WCAG contrast
Aa
#286df4 on white: 4.58:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#286df4 on black: 4.58:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red15.7%
Green42.7%
Blue95.7%
CMYK percentages
Cyan83.6%
Magenta55.3%
Yellow0.0%
Key (black)4.3%
Color previews
#286df4 text on a black background
contrast 4.58:1
Card sample
#286df4 text on a white background
contrast 4.58:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #286df4;
Background color
Panel with #286df4 background
background-color: #286df4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #286df4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(40, 109, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(40, 109, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #286df4; background: linear-gradient(135deg, #286df4, #6B28F4);