Skip to content

#331cf0

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

RGB
51, 28, 240
HSL
247°, 88%, 53%
CMYK
79, 88, 0, 6
Luminance
0.0783

Every format

HEX#331cf0
RGBrgb(51, 28, 240)
HSLhsl(247, 88%, 53%)
CMYKcmyk(79%, 88%, 0%, 6%)
LABlab(33.6 70.6 -97.2)
LCHlch(33.6 120.1 306.0)
OKLCHoklch(0.460 0.281 271.2)

Copy-ready code

/* CSS */
color: #331cf0;
background-color: #331cf0;
/* Tailwind (arbitrary) */
class="text-[#331cf0] bg-[#331cf0]"
/* SCSS */
$brand: #331cf0;
/* SwiftUI */
Color(red: 0.200, green: 0.110, blue: 0.941)
/* Android */
Color.parseColor("#331cf0")

Accessibility — WCAG contrast

Aa
#331cf0 on white: 8.19:1
AA ✓ pass · AA-large · AAA
Aa
#331cf0 on black: 2.57:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red20.0%
Green11.0%
Blue94.1%

CMYK percentages

Cyan78.8%
Magenta88.3%
Yellow0.0%
Key (black)5.9%

Color previews

#331cf0 text on a black background

contrast 2.57:1

Card sample

#331cf0 text on a white background

contrast 8.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #331cf0;
Background color
Panel with #331cf0 background
background-color: #331cf0;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #331cf0;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(51, 28, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 28, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #331cf0;
background: linear-gradient(135deg, #331cf0, #C01CF0);

Monochromatic scale

Palettes built from #331cf0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #331cf0 in the Color Lab