#285bdf
a balanced, vivid blue · cool · closest name: royalblue
RGB
40, 91, 223
HSL
223°, 74%, 52%
CMYK
82, 59, 0, 13
Luminance
0.1326
Every format
| HEX | #285bdf |
| RGB | rgb(40, 91, 223) |
| HSL | hsl(223, 74%, 52%) |
| CMYK | cmyk(82%, 59%, 0%, 13%) |
| LAB | lab(43.1 31.8 -71.8) |
| LCH | lch(43.1 78.5 293.9) |
| OKLCH | oklch(0.522 0.209 264.2) |
Copy-ready code
/* CSS */
color: #285bdf;
background-color: #285bdf;
/* Tailwind (arbitrary) */
class="text-[#285bdf] bg-[#285bdf]"
/* SCSS */
$brand: #285bdf;
/* SwiftUI */
Color(red: 0.157, green: 0.357, blue: 0.875)
/* Android */
Color.parseColor("#285bdf")Accessibility — WCAG contrast
Aa
#285bdf on white: 5.75:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#285bdf on black: 3.65:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red15.7%
Green35.7%
Blue87.5%
CMYK percentages
Cyan82.1%
Magenta59.2%
Yellow0.0%
Key (black)12.5%
Color previews
#285bdf text on a black background
contrast 3.65:1
Card sample
#285bdf text on a white background
contrast 5.75:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #285bdf;
Background color
Panel with #285bdf background
background-color: #285bdf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #285bdf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(40, 91, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(40, 91, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #285bdf; background: linear-gradient(135deg, #285bdf, #6F28DF);