Skip to content

#2f55af

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

RGB
47, 85, 175
HSL
222°, 58%, 44%
CMYK
73, 51, 0, 31
Luminance
0.1020

Every format

HEX#2f55af
RGBrgb(47, 85, 175)
HSLhsl(222, 58%, 44%)
CMYKcmyk(73%, 51%, 0%, 31%)
LABlab(38.2 18.3 -52.0)
LCHlch(38.2 55.1 289.4)
OKLCHoklch(0.474 0.150 264.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f55af on white: 6.91:1
AA ✓ pass · AA-large · AAA
Aa
#2f55af on black: 3.04:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green33.3%
Blue68.6%

CMYK percentages

Cyan73.1%
Magenta51.4%
Yellow0.0%
Key (black)31.4%

Color previews

#2f55af text on a black background

contrast 3.04:1

Card sample

#2f55af text on a white background

contrast 6.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f55af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f55af in the Color Lab