Skip to content

#2f55ad

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

RGB
47, 85, 173
HSL
222°, 57%, 43%
CMYK
73, 51, 0, 32
Luminance
0.1012

Every format

HEX#2f55ad
RGBrgb(47, 85, 173)
HSLhsl(222, 57%, 43%)
CMYKcmyk(73%, 51%, 0%, 32%)
LABlab(38.0 17.6 -51.0)
LCHlch(38.0 54.0 289.0)
OKLCHoklch(0.472 0.147 264.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f55ad on white: 6.95:1
AA ✓ pass · AA-large · AAA
Aa
#2f55ad on black: 3.02:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green33.3%
Blue67.8%

CMYK percentages

Cyan72.8%
Magenta50.9%
Yellow0.0%
Key (black)32.2%

Color previews

#2f55ad text on a black background

contrast 3.02:1

Card sample

#2f55ad text on a white background

contrast 6.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 85, 173, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 85, 173, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f55ad;
background: linear-gradient(135deg, #2f55ad, #5D2FAD);

Monochromatic scale

Palettes built from #2f55ad

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f55ad in the Color Lab