Skip to content

#2f5ecc

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

RGB
47, 94, 204
HSL
222°, 63%, 49%
CMYK
77, 54, 0, 20
Luminance
0.1297

Every format

HEX#2f5ecc
RGBrgb(47, 94, 204)
HSLhsl(222, 63%, 49%)
CMYKcmyk(77%, 54%, 0%, 20%)
LABlab(42.7 23.4 -61.6)
LCHlch(42.7 65.9 290.8)
OKLCHoklch(0.514 0.179 263.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f5ecc on white: 5.84:1
AA ✓ pass · AA-large · AAA
Aa
#2f5ecc on black: 3.59:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green36.9%
Blue80.0%

CMYK percentages

Cyan77.0%
Magenta53.9%
Yellow0.0%
Key (black)20.0%

Color previews

#2f5ecc text on a black background

contrast 3.59:1

Card sample

#2f5ecc text on a white background

contrast 5.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 94, 204, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 94, 204, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f5ecc;
background: linear-gradient(135deg, #2f5ecc, #692FCC);

Monochromatic scale

Palettes built from #2f5ecc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f5ecc in the Color Lab