Skip to content

#2d52bf

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

RGB
45, 82, 191
HSL
225°, 62%, 46%
CMYK
76, 57, 0, 25
Luminance
0.1035

Every format

HEX#2d52bf
RGBrgb(45, 82, 191)
HSLhsl(225, 62%, 46%)
CMYKcmyk(76%, 57%, 0%, 25%)
LABlab(38.5 26.1 -61.0)
LCHlch(38.5 66.3 293.2)
OKLCHoklch(0.479 0.176 265.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d52bf on white: 6.84:1
AA ✓ pass · AA-large · AAA
Aa
#2d52bf on black: 3.07:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green32.2%
Blue74.9%

CMYK percentages

Cyan76.4%
Magenta57.1%
Yellow0.0%
Key (black)25.1%

Color previews

#2d52bf text on a black background

contrast 3.07:1

Card sample

#2d52bf text on a white background

contrast 6.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 82, 191, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 82, 191, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d52bf;
background: linear-gradient(135deg, #2d52bf, #692DBF);

Monochromatic scale

Palettes built from #2d52bf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d52bf in the Color Lab