Skip to content

#2d0fd9

a balanced, electric blue · warm · closest name: blue

RGB
45, 15, 217
HSL
249°, 87%, 46%
CMYK
79, 93, 0, 15
Luminance
0.0591

Every format

HEX#2d0fd9
RGBrgb(45, 15, 217)
HSLhsl(249, 87%, 46%)
CMYKcmyk(79%, 93%, 0%, 15%)
LABlab(29.2 67.9 -91.4)
LCHlch(29.2 113.9 306.6)
OKLCHoklch(0.421 0.264 271.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d0fd9 on white: 9.62:1
AA ✓ pass · AA-large · AAA
Aa
#2d0fd9 on black: 2.18:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green5.9%
Blue85.1%

CMYK percentages

Cyan79.3%
Magenta93.1%
Yellow0.0%
Key (black)14.9%

Color previews

#2d0fd9 text on a black background

contrast 2.18:1

Card sample

#2d0fd9 text on a white background

contrast 9.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 15, 217, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 15, 217, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d0fd9;
background: linear-gradient(135deg, #2d0fd9, #B40FD9);

Monochromatic scale

Palettes built from #2d0fd9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d0fd9 in the Color Lab