Skip to content

#2f50af

a dark, vivid blue · cool · closest name: royalblue

RGB
47, 80, 175
HSL
225°, 58%, 44%
CMYK
73, 54, 0, 31
Luminance
0.0944

Every format

HEX#2f50af
RGBrgb(47, 80, 175)
HSLhsl(225, 58%, 44%)
CMYKcmyk(73%, 54%, 0%, 31%)
LABlab(36.8 21.6 -54.3)
LCHlch(36.8 58.4 291.7)
OKLCHoklch(0.463 0.157 266.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f50af on white: 7.27:1
AA ✓ pass · AA-large · AAA
Aa
#2f50af on black: 2.89:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green31.4%
Blue68.6%

CMYK percentages

Cyan73.1%
Magenta54.3%
Yellow0.0%
Key (black)31.4%

Color previews

#2f50af text on a black background

contrast 2.89:1

Card sample

#2f50af text on a white background

contrast 7.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 80, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 80, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f50af;
background: linear-gradient(135deg, #2f50af, #632FAF);

Monochromatic scale

Palettes built from #2f50af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f50af in the Color Lab