#306ef1
a balanced, electric blue · cool · closest name: royalblue
RGB
48, 110, 241
HSL
221°, 87%, 57%
CMYK
80, 54, 0, 6
Luminance
0.1813
Every format
| HEX | #306ef1 |
| RGB | rgb(48, 110, 241) |
| HSL | hsl(221, 87%, 57%) |
| CMYK | cmyk(80%, 54%, 0%, 6%) |
| LAB | lab(49.6 27.1 -71.3) |
| LCH | lch(49.6 76.3 290.8) |
| OKLCH | oklch(0.576 0.208 262.7) |
Copy-ready code
/* CSS */
color: #306ef1;
background-color: #306ef1;
/* Tailwind (arbitrary) */
class="text-[#306ef1] bg-[#306ef1]"
/* SCSS */
$brand: #306ef1;
/* SwiftUI */
Color(red: 0.188, green: 0.431, blue: 0.945)
/* Android */
Color.parseColor("#306ef1")Accessibility — WCAG contrast
Aa
#306ef1 on white: 4.54:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#306ef1 on black: 4.63:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red18.8%
Green43.1%
Blue94.5%
CMYK percentages
Cyan80.1%
Magenta54.4%
Yellow0.0%
Key (black)5.5%
Color previews
#306ef1 text on a black background
contrast 4.63:1
Card sample
#306ef1 text on a white background
contrast 4.54:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #306ef1;
Background color
Panel with #306ef1 background
background-color: #306ef1;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #306ef1;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(48, 110, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(48, 110, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #306ef1; background: linear-gradient(135deg, #306ef1, #7330F1);