Skip to content

#321cf8

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

RGB
50, 28, 248
HSL
246°, 94%, 54%
CMYK
80, 89, 0, 3
Luminance
0.0829

Every format

HEX#321cf8
RGBrgb(50, 28, 248)
HSLhsl(246, 94%, 54%)
CMYKcmyk(80%, 89%, 0%, 3%)
LABlab(34.6 72.7 -100.1)
LCHlch(34.6 123.7 306.0)
OKLCHoklch(0.469 0.289 270.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#321cf8 on white: 7.90:1
AA ✓ pass · AA-large · AAA
Aa
#321cf8 on black: 2.66:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red19.6%
Green11.0%
Blue97.3%

CMYK percentages

Cyan79.8%
Magenta88.7%
Yellow0.0%
Key (black)2.7%

Color previews

#321cf8 text on a black background

contrast 2.66:1

Card sample

#321cf8 text on a white background

contrast 7.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #321cf8;
Background color
Panel with #321cf8 background
background-color: #321cf8;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #321cf8;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(50, 28, 248, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(50, 28, 248, 0.45);
Border & gradient
Gradient panel
border: 3px solid #321cf8;
background: linear-gradient(135deg, #321cf8, #C51CF8);

Monochromatic scale

Palettes built from #321cf8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #321cf8 in the Color Lab