Skip to content

#310ef1

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

RGB
49, 14, 241
HSL
249°, 89%, 50%
CMYK
80, 94, 0, 6
Luminance
0.0732

Every format

HEX#310ef1
RGBrgb(49, 14, 241)
HSLhsl(249, 89%, 50%)
CMYKcmyk(80%, 94%, 0%, 6%)
LABlab(32.5 74.2 -99.6)
LCHlch(32.5 124.2 306.7)
OKLCHoklch(0.452 0.288 270.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#310ef1 on white: 8.52:1
AA ✓ pass · AA-large · AAA
Aa
#310ef1 on black: 2.46:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red19.2%
Green5.5%
Blue94.5%

CMYK percentages

Cyan79.7%
Magenta94.2%
Yellow0.0%
Key (black)5.5%

Color previews

#310ef1 text on a black background

contrast 2.46:1

Card sample

#310ef1 text on a white background

contrast 8.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #310ef1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #310ef1 in the Color Lab