Skip to content

#2d2fcd

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

RGB
45, 47, 205
HSL
239°, 64%, 49%
CMYK
78, 77, 0, 20
Luminance
0.0700

Every format

HEX#2d2fcd
RGBrgb(45, 47, 205)
HSLhsl(239, 64%, 49%)
CMYKcmyk(78%, 77%, 0%, 20%)
LABlab(31.8 52.3 -80.1)
LCHlch(31.8 95.7 303.2)
OKLCHoklch(0.434 0.232 270.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red17.6%
Green18.4%
Blue80.4%

CMYK percentages

Cyan78.0%
Magenta77.1%
Yellow0.0%
Key (black)19.6%

Color previews

#2d2fcd text on a black background

contrast 2.40:1

Card sample

#2d2fcd text on a white background

contrast 8.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d2fcd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d2fcd in the Color Lab