Skip to content

#2d2cd2

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

RGB
45, 44, 210
HSL
240°, 65%, 50%
CMYK
79, 79, 0, 18
Luminance
0.0701

Every format

HEX#2d2cd2
RGBrgb(45, 44, 210)
HSLhsl(240, 65%, 50%)
CMYKcmyk(79%, 79%, 0%, 18%)
LABlab(31.8 55.4 -82.9)
LCHlch(31.8 99.8 303.8)
OKLCHoklch(0.436 0.240 270.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d2cd2 on white: 8.74:1
AA ✓ pass · AA-large · AAA
Aa
#2d2cd2 on black: 2.40:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green17.3%
Blue82.4%

CMYK percentages

Cyan78.6%
Magenta79.0%
Yellow0.0%
Key (black)17.6%

Color previews

#2d2cd2 text on a black background

contrast 2.40:1

Card sample

#2d2cd2 text on a white background

contrast 8.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 44, 210, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 44, 210, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d2cd2;
background: linear-gradient(135deg, #2d2cd2, #9C2CD2);

Monochromatic scale

Palettes built from #2d2cd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d2cd2 in the Color Lab