Skip to content

#2d46cd

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

RGB
45, 70, 205
HSL
231°, 64%, 49%
CMYK
78, 66, 0, 20
Luminance
0.0935

Every format

HEX#2d46cd
RGBrgb(45, 70, 205)
HSLhsl(231, 64%, 49%)
CMYKcmyk(78%, 66%, 0%, 20%)
LABlab(36.6 39.0 -72.1)
LCHlch(36.6 82.0 298.4)
OKLCHoklch(0.469 0.209 268.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d46cd on white: 7.32:1
AA ✓ pass · AA-large · AAA
Aa
#2d46cd on black: 2.87:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green27.5%
Blue80.4%

CMYK percentages

Cyan78.0%
Magenta65.9%
Yellow0.0%
Key (black)19.6%

Color previews

#2d46cd text on a black background

contrast 2.87:1

Card sample

#2d46cd text on a white background

contrast 7.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d46cd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d46cd in the Color Lab