#4875df
a balanced, vivid blue · cool · closest name: royalblue
RGB
72, 117, 223
HSL
222°, 70%, 58%
CMYK
68, 48, 0, 13
Luminance
0.1943
Every format
| HEX | #4875df |
| RGB | rgb(72, 117, 223) |
| HSL | hsl(222, 70%, 58%) |
| CMYK | cmyk(68%, 48%, 0%, 13%) |
| LAB | lab(51.2 19.0 -58.7) |
| LCH | lch(51.2 61.7 288.0) |
| OKLCH | oklch(0.586 0.169 264.5) |
Copy-ready code
/* CSS */
color: #4875df;
background-color: #4875df;
/* Tailwind (arbitrary) */
class="text-[#4875df] bg-[#4875df]"
/* SCSS */
$brand: #4875df;
/* SwiftUI */
Color(red: 0.282, green: 0.459, blue: 0.875)
/* Android */
Color.parseColor("#4875df")Accessibility — WCAG contrast
Aa
#4875df on white: 4.30:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#4875df on black: 4.89:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red28.2%
Green45.9%
Blue87.5%
CMYK percentages
Cyan67.7%
Magenta47.5%
Yellow0.0%
Key (black)12.5%
Color previews
#4875df text on a black background
contrast 4.89:1
Card sample
#4875df text on a white background
contrast 4.30:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #4875df;
Background color
Panel with #4875df background
background-color: #4875df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #4875df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(72, 117, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(72, 117, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4875df; background: linear-gradient(135deg, #4875df, #7F48DF);