Skip to content

#2d52bc

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

RGB
45, 82, 188
HSL
225°, 61%, 46%
CMYK
76, 56, 0, 26
Luminance
0.1022

Every format

HEX#2d52bc
RGBrgb(45, 82, 188)
HSLhsl(225, 61%, 46%)
CMYKcmyk(76%, 56%, 0%, 26%)
LABlab(38.2 25.0 -59.6)
LCHlch(38.2 64.6 292.7)
OKLCHoklch(0.477 0.172 265.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red17.6%
Green32.2%
Blue73.7%

CMYK percentages

Cyan76.1%
Magenta56.4%
Yellow0.0%
Key (black)26.3%

Color previews

#2d52bc text on a black background

contrast 3.04:1

Card sample

#2d52bc text on a white background

contrast 6.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d52bc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d52bc in the Color Lab