Skip to content

#321eb4

a dark, vivid blue · warm · closest name: navy

RGB
50, 30, 180
HSL
248°, 71%, 41%
CMYK
72, 83, 0, 29
Luminance
0.0490

Every format

HEX#321eb4
RGBrgb(50, 30, 180)
HSLhsl(248, 71%, 41%)
CMYKcmyk(72%, 83%, 0%, 29%)
LABlab(26.4 53.2 -74.2)
LCHlch(26.4 91.3 305.6)
OKLCHoklch(0.390 0.215 275.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#321eb4 on white: 10.60:1
AA ✓ pass · AA-large · AAA
Aa
#321eb4 on black: 1.98:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red19.6%
Green11.8%
Blue70.6%

CMYK percentages

Cyan72.2%
Magenta83.3%
Yellow0.0%
Key (black)29.4%

Color previews

#321eb4 text on a black background

contrast 1.98:1

Card sample

#321eb4 text on a white background

contrast 10.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(50, 30, 180, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(50, 30, 180, 0.45);
Border & gradient
Gradient panel
border: 3px solid #321eb4;
background: linear-gradient(135deg, #321eb4, #961EB4);

Monochromatic scale

Palettes built from #321eb4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #321eb4 in the Color Lab