#302fdf
a balanced, vivid blue · warm · closest name: blue
RGB
48, 47, 223
HSL
240°, 73%, 53%
CMYK
79, 79, 0, 13
Luminance
0.0799
Every format
| HEX | #302fdf |
| RGB | rgb(48, 47, 223) |
| HSL | hsl(240, 73%, 53%) |
| CMYK | cmyk(79%, 79%, 0%, 13%) |
| LAB | lab(34.0 58.1 -86.9) |
| LCH | lch(34.0 104.6 303.8) |
| OKLCH | oklch(0.456 0.252 270.8) |
Copy-ready code
/* CSS */
color: #302fdf;
background-color: #302fdf;
/* Tailwind (arbitrary) */
class="text-[#302fdf] bg-[#302fdf]"
/* SCSS */
$brand: #302fdf;
/* SwiftUI */
Color(red: 0.188, green: 0.184, blue: 0.875)
/* Android */
Color.parseColor("#302fdf")Accessibility — WCAG contrast
Aa
#302fdf on white: 8.08:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#302fdf on black: 2.60:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red18.8%
Green18.4%
Blue87.5%
CMYK percentages
Cyan78.5%
Magenta78.9%
Yellow0.0%
Key (black)12.5%
Color previews
#302fdf text on a black background
contrast 2.60:1
Card sample
#302fdf text on a white background
contrast 8.08:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #302fdf;
Background color
Panel with #302fdf background
background-color: #302fdf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #302fdf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(48, 47, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(48, 47, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #302fdf; background: linear-gradient(135deg, #302fdf, #A52FDF);