Skip to content

#2d57af

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

RGB
45, 87, 175
HSL
221°, 59%, 43%
CMYK
74, 50, 0, 31
Luminance
0.1047

Every format

HEX#2d57af
RGBrgb(45, 87, 175)
HSLhsl(221, 59%, 43%)
CMYKcmyk(74%, 50%, 0%, 31%)
LABlab(38.7 16.8 -51.2)
LCHlch(38.7 53.9 288.1)
OKLCHoklch(0.477 0.148 262.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d57af on white: 6.79:1
AA ✓ pass · AA-large · AAA
Aa
#2d57af on black: 3.09:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green34.1%
Blue68.6%

CMYK percentages

Cyan74.3%
Magenta50.3%
Yellow0.0%
Key (black)31.4%

Color previews

#2d57af text on a black background

contrast 3.09:1

Card sample

#2d57af text on a white background

contrast 6.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d57af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d57af in the Color Lab