Skip to content

#2f52cf

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

RGB
47, 82, 207
HSL
227°, 63%, 50%
CMYK
77, 60, 0, 19
Luminance
0.1114

Every format

HEX#2f52cf
RGBrgb(47, 82, 207)
HSLhsl(227, 63%, 50%)
CMYKcmyk(77%, 60%, 0%, 19%)
LABlab(39.8 32.3 -68.0)
LCHlch(39.8 75.3 295.4)
OKLCHoklch(0.493 0.197 266.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f52cf on white: 6.50:1
AA ✓ pass · AA-large · AAA
Aa
#2f52cf on black: 3.23:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green32.2%
Blue81.2%

CMYK percentages

Cyan77.3%
Magenta60.4%
Yellow0.0%
Key (black)18.8%

Color previews

#2f52cf text on a black background

contrast 3.23:1

Card sample

#2f52cf text on a white background

contrast 6.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 82, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 82, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f52cf;
background: linear-gradient(135deg, #2f52cf, #772FCF);

Monochromatic scale

Palettes built from #2f52cf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f52cf in the Color Lab