Skip to content

#2f5ace

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

RGB
47, 90, 206
HSL
224°, 63%, 50%
CMYK
77, 56, 0, 19
Luminance
0.1237

Every format

HEX#2f5ace
RGBrgb(47, 90, 206)
HSLhsl(224, 63%, 50%)
CMYKcmyk(77%, 56%, 0%, 19%)
LABlab(41.8 26.7 -64.3)
LCHlch(41.8 69.6 292.6)
OKLCHoklch(0.508 0.186 265.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f5ace on white: 6.04:1
AA ✓ pass · AA-large · AAA
Aa
#2f5ace on black: 3.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green35.3%
Blue80.8%

CMYK percentages

Cyan77.2%
Magenta56.3%
Yellow0.0%
Key (black)19.2%

Color previews

#2f5ace text on a black background

contrast 3.47:1

Card sample

#2f5ace text on a white background

contrast 6.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 90, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 90, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f5ace;
background: linear-gradient(135deg, #2f5ace, #6E2FCE);

Monochromatic scale

Palettes built from #2f5ace

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f5ace in the Color Lab