Skip to content

#302ef1

a balanced, electric blue · warm · closest name: blue

RGB
48, 46, 241
HSL
241°, 87%, 56%
CMYK
80, 81, 0, 6
Luminance
0.0893

Every format

HEX#302ef1
RGBrgb(48, 46, 241)
HSLhsl(241, 87%, 56%)
CMYKcmyk(80%, 81%, 0%, 6%)
LABlab(35.9 64.0 -94.0)
LCHlch(35.9 113.7 304.2)
OKLCHoklch(0.475 0.272 270.0)

Copy-ready code

/* CSS */
color: #302ef1;
background-color: #302ef1;
/* Tailwind (arbitrary) */
class="text-[#302ef1] bg-[#302ef1]"
/* SCSS */
$brand: #302ef1;
/* SwiftUI */
Color(red: 0.188, green: 0.180, blue: 0.945)
/* Android */
Color.parseColor("#302ef1")

Accessibility — WCAG contrast

Aa
#302ef1 on white: 7.54:1
AA ✓ pass · AA-large · AAA
Aa
#302ef1 on black: 2.79:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.8%
Green18.0%
Blue94.5%

CMYK percentages

Cyan80.1%
Magenta80.9%
Yellow0.0%
Key (black)5.5%

Color previews

#302ef1 text on a black background

contrast 2.79:1

Card sample

#302ef1 text on a white background

contrast 7.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #302ef1;
Background color
Panel with #302ef1 background
background-color: #302ef1;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #302ef1;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(48, 46, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(48, 46, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #302ef1;
background: linear-gradient(135deg, #302ef1, #B22EF1);

Monochromatic scale

Palettes built from #302ef1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #302ef1 in the Color Lab