Skip to content

#334ddf

a balanced, vivid blue · warm · closest name: slateblue

RGB
51, 77, 223
HSL
231°, 73%, 54%
CMYK
77, 66, 0, 13
Luminance
0.1134

Every format

HEX#334ddf
RGBrgb(51, 77, 223)
HSLhsl(231, 73%, 54%)
CMYKcmyk(77%, 66%, 0%, 13%)
LABlab(40.1 41.5 -76.7)
LCHlch(40.1 87.2 298.4)
OKLCHoklch(0.500 0.222 268.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#334ddf on white: 6.43:1
AA ✓ pass · AA-large · AAA
Aa
#334ddf on black: 3.27:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red20.0%
Green30.2%
Blue87.5%

CMYK percentages

Cyan77.1%
Magenta65.5%
Yellow0.0%
Key (black)12.5%

Color previews

#334ddf text on a black background

contrast 3.27:1

Card sample

#334ddf text on a white background

contrast 6.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #334ddf;
Background color
Panel with #334ddf background
background-color: #334ddf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #334ddf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(51, 77, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 77, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #334ddf;
background: linear-gradient(135deg, #334ddf, #8C33DF);

Monochromatic scale

Palettes built from #334ddf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #334ddf in the Color Lab