#154fdf
a balanced, electric blue · cool · closest name: royalblue
RGB
21, 79, 223
HSL
223°, 83%, 48%
CMYK
91, 65, 0, 13
Luminance
0.1108
Every format
| HEX | #154fdf |
| RGB | rgb(21, 79, 223) |
| HSL | hsl(223, 83%, 48%) |
| CMYK | cmyk(91%, 65%, 0%, 13%) |
| LAB | lab(39.7 38.3 -77.4) |
| LCH | lch(39.7 86.4 296.3) |
| OKLCH | oklch(0.495 0.226 263.5) |
Copy-ready code
/* CSS */
color: #154fdf;
background-color: #154fdf;
/* Tailwind (arbitrary) */
class="text-[#154fdf] bg-[#154fdf]"
/* SCSS */
$brand: #154fdf;
/* SwiftUI */
Color(red: 0.082, green: 0.310, blue: 0.875)
/* Android */
Color.parseColor("#154fdf")Accessibility — WCAG contrast
Aa
#154fdf on white: 6.53:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#154fdf on black: 3.22:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red8.2%
Green31.0%
Blue87.5%
CMYK percentages
Cyan90.6%
Magenta64.6%
Yellow0.0%
Key (black)12.5%
Color previews
#154fdf text on a black background
contrast 3.22:1
Card sample
#154fdf text on a white background
contrast 6.53:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #154fdf;
Background color
Panel with #154fdf background
background-color: #154fdf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #154fdf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(21, 79, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(21, 79, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #154fdf; background: linear-gradient(135deg, #154fdf, #6215DF);