#4068ff
a balanced, electric blue · warm · closest name: royalblue
RGB
64, 104, 255
HSL
227°, 100%, 63%
CMYK
75, 59, 0, 0
Luminance
0.1821
Every format
| HEX | #4068ff |
| RGB | rgb(64, 104, 255) |
| HSL | hsl(227, 100%, 63%) |
| CMYK | cmyk(75%, 59%, 0%, 0%) |
| LAB | lab(49.8 37.4 -78.9) |
| LCH | lch(49.8 87.4 295.4) |
| OKLCH | oklch(0.581 0.228 267.3) |
Copy-ready code
/* CSS */
color: #4068ff;
background-color: #4068ff;
/* Tailwind (arbitrary) */
class="text-[#4068ff] bg-[#4068ff]"
/* SCSS */
$brand: #4068ff;
/* SwiftUI */
Color(red: 0.251, green: 0.408, blue: 1.000)
/* Android */
Color.parseColor("#4068ff")Accessibility — WCAG contrast
Aa
#4068ff on white: 4.52:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#4068ff on black: 4.64:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green40.8%
Blue100.0%
CMYK percentages
Cyan74.9%
Magenta59.2%
Yellow0.0%
Key (black)0.0%
Color previews
#4068ff text on a black background
contrast 4.64:1
Card sample
#4068ff text on a white background
contrast 4.52:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #4068ff;
Background color
Panel with #4068ff background
background-color: #4068ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #4068ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 104, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 104, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4068ff; background: linear-gradient(135deg, #4068ff, #9740FF);