Skip to content

#321fad

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

RGB
50, 31, 173
HSL
248°, 70%, 40%
CMYK
71, 82, 0, 32
Luminance
0.0468

Every format

HEX#321fad
RGBrgb(50, 31, 173)
HSLhsl(248, 70%, 40%)
CMYKcmyk(71%, 82%, 0%, 32%)
LABlab(25.8 50.7 -71.1)
LCHlch(25.8 87.3 305.5)
OKLCHoklch(0.383 0.207 276.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#321fad on white: 10.85:1
AA ✓ pass · AA-large · AAA
Aa
#321fad on black: 1.94:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red19.6%
Green12.2%
Blue67.8%

CMYK percentages

Cyan71.1%
Magenta82.1%
Yellow0.0%
Key (black)32.2%

Color previews

#321fad text on a black background

contrast 1.94:1

Card sample

#321fad text on a white background

contrast 10.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(50, 31, 173, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(50, 31, 173, 0.45);
Border & gradient
Gradient panel
border: 3px solid #321fad;
background: linear-gradient(135deg, #321fad, #911FAD);

Monochromatic scale

Palettes built from #321fad

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #321fad in the Color Lab