Skip to content

#2d52cd

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

RGB
45, 82, 205
HSL
226°, 64%, 49%
CMYK
78, 60, 0, 20
Luminance
0.1100

Every format

HEX#2d52cd
RGBrgb(45, 82, 205)
HSLhsl(226, 64%, 49%)
CMYKcmyk(78%, 60%, 0%, 20%)
LABlab(39.6 31.3 -67.3)
LCHlch(39.6 74.2 295.0)
OKLCHoklch(0.491 0.195 266.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d52cd on white: 6.56:1
AA ✓ pass · AA-large · AAA
Aa
#2d52cd on black: 3.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green32.2%
Blue80.4%

CMYK percentages

Cyan78.0%
Magenta60.0%
Yellow0.0%
Key (black)19.6%

Color previews

#2d52cd text on a black background

contrast 3.20:1

Card sample

#2d52cd text on a white background

contrast 6.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d52cd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d52cd in the Color Lab