Skip to content

#2d41cd

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

RGB
45, 65, 205
HSL
233°, 64%, 49%
CMYK
78, 68, 0, 20
Luminance
0.0875

Every format

HEX#2d41cd
RGBrgb(45, 65, 205)
HSLhsl(233, 64%, 49%)
CMYKcmyk(78%, 68%, 0%, 20%)
LABlab(35.5 42.0 -74.0)
LCHlch(35.5 85.1 299.6)
OKLCHoklch(0.461 0.214 269.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d41cd on white: 7.64:1
AA ✓ pass · AA-large · AAA
Aa
#2d41cd on black: 2.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green25.5%
Blue80.4%

CMYK percentages

Cyan78.0%
Magenta68.3%
Yellow0.0%
Key (black)19.6%

Color previews

#2d41cd text on a black background

contrast 2.75:1

Card sample

#2d41cd text on a white background

contrast 7.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d41cd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d41cd in the Color Lab