Skip to content

#2d64cd

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

RGB
45, 100, 205
HSL
219°, 64%, 49%
CMYK
78, 51, 0, 20
Luminance
0.1408

Every format

HEX#2d64cd
RGBrgb(45, 100, 205)
HSLhsl(219, 64%, 49%)
CMYKcmyk(78%, 51%, 0%, 20%)
LABlab(44.3 19.7 -59.5)
LCHlch(44.3 62.7 288.3)
OKLCHoklch(0.527 0.173 261.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d64cd on white: 5.50:1
AA ✓ pass · AA-large · AAA
Aa
#2d64cd on black: 3.82:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green39.2%
Blue80.4%

CMYK percentages

Cyan78.0%
Magenta51.2%
Yellow0.0%
Key (black)19.6%

Color previews

#2d64cd text on a black background

contrast 3.82:1

Card sample

#2d64cd text on a white background

contrast 5.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d64cd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d64cd in the Color Lab