#204df4
a balanced, electric blue · warm · closest name: royalblue
RGB
32, 77, 244
HSL
227°, 91%, 54%
CMYK
87, 68, 0, 4
Luminance
0.1215
Every format
| HEX | #204df4 |
| RGB | rgb(32, 77, 244) |
| HSL | hsl(227, 91%, 54%) |
| CMYK | cmyk(87%, 68%, 0%, 4%) |
| LAB | lab(41.4 47.7 -86.5) |
| LCH | lch(41.4 98.7 298.9) |
| OKLCH | oklch(0.514 0.252 265.4) |
Copy-ready code
/* CSS */
color: #204df4;
background-color: #204df4;
/* Tailwind (arbitrary) */
class="text-[#204df4] bg-[#204df4]"
/* SCSS */
$brand: #204df4;
/* SwiftUI */
Color(red: 0.125, green: 0.302, blue: 0.957)
/* Android */
Color.parseColor("#204df4")Accessibility — WCAG contrast
Aa
#204df4 on white: 6.12:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#204df4 on black: 3.43:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red12.5%
Green30.2%
Blue95.7%
CMYK percentages
Cyan86.9%
Magenta68.4%
Yellow0.0%
Key (black)4.3%
Color previews
#204df4 text on a black background
contrast 3.43:1
Card sample
#204df4 text on a white background
contrast 6.12:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #204df4;
Background color
Panel with #204df4 background
background-color: #204df4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #204df4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(32, 77, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(32, 77, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #204df4; background: linear-gradient(135deg, #204df4, #8020F4);