#3b81ff
a balanced, electric blue · cool · closest name: royalblue
RGB
59, 129, 255
HSL
219°, 100%, 62%
CMYK
77, 49, 0, 0
Luminance
0.2385
Every format
| HEX | #3b81ff |
| RGB | rgb(59, 129, 255) |
| HSL | hsl(219, 100%, 62%) |
| CMYK | cmyk(77%, 49%, 0%, 0%) |
| LAB | lab(55.9 21.4 -68.9) |
| LCH | lch(55.9 72.2 287.3) |
| OKLCH | oklch(0.627 0.201 261.0) |
Copy-ready code
/* CSS */
color: #3b81ff;
background-color: #3b81ff;
/* Tailwind (arbitrary) */
class="text-[#3b81ff] bg-[#3b81ff]"
/* SCSS */
$brand: #3b81ff;
/* SwiftUI */
Color(red: 0.231, green: 0.506, blue: 1.000)
/* Android */
Color.parseColor("#3b81ff")Accessibility — WCAG contrast
Aa
#3b81ff on white: 3.64:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#3b81ff on black: 5.77:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red23.1%
Green50.6%
Blue100.0%
CMYK percentages
Cyan76.9%
Magenta49.4%
Yellow0.0%
Key (black)0.0%
Color previews
#3b81ff text on a black background
contrast 5.77:1
Card sample
#3b81ff text on a white background
contrast 3.64:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #3b81ff;
Background color
Panel with #3b81ff background
background-color: #3b81ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #3b81ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(59, 129, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(59, 129, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3b81ff; background: linear-gradient(135deg, #3b81ff, #783BFF);