Skip to content

#2f4cdd

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

RGB
47, 76, 221
HSL
230°, 72%, 53%
CMYK
79, 66, 0, 13
Luminance
0.1099

Every format

HEX#2f4cdd
RGBrgb(47, 76, 221)
HSLhsl(230, 72%, 53%)
CMYKcmyk(79%, 66%, 0%, 13%)
LABlab(39.6 41.1 -76.5)
LCHlch(39.6 86.8 298.3)
OKLCHoklch(0.495 0.222 267.9)

Copy-ready code

/* CSS */
color: #2f4cdd;
background-color: #2f4cdd;
/* Tailwind (arbitrary) */
class="text-[#2f4cdd] bg-[#2f4cdd]"
/* SCSS */
$brand: #2f4cdd;
/* SwiftUI */
Color(red: 0.184, green: 0.298, blue: 0.867)
/* Android */
Color.parseColor("#2f4cdd")

Accessibility — WCAG contrast

Aa
#2f4cdd on white: 6.57:1
AA ✓ pass · AA-large · AAA
Aa
#2f4cdd on black: 3.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green29.8%
Blue86.7%

CMYK percentages

Cyan78.7%
Magenta65.6%
Yellow0.0%
Key (black)13.3%

Color previews

#2f4cdd text on a black background

contrast 3.20:1

Card sample

#2f4cdd text on a white background

contrast 6.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2f4cdd;
Background color
Panel with #2f4cdd background
background-color: #2f4cdd;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 76, 221, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 76, 221, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f4cdd;
background: linear-gradient(135deg, #2f4cdd, #862FDD);

Monochromatic scale

Palettes built from #2f4cdd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f4cdd in the Color Lab