Skip to content

#2d1cfb

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

RGB
45, 28, 251
HSL
245°, 97%, 55%
CMYK
82, 89, 0, 2
Luminance
0.0835

Every format

HEX#2d1cfb
RGBrgb(45, 28, 251)
HSLhsl(245, 97%, 55%)
CMYKcmyk(82%, 89%, 0%, 2%)
LABlab(34.7 73.3 -101.6)
LCHlch(34.7 125.3 305.8)
OKLCHoklch(0.470 0.294 269.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d1cfb on white: 7.86:1
AA ✓ pass · AA-large · AAA
Aa
#2d1cfb on black: 2.67:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green11.0%
Blue98.4%

CMYK percentages

Cyan82.1%
Magenta88.8%
Yellow0.0%
Key (black)1.6%

Color previews

#2d1cfb text on a black background

contrast 2.67:1

Card sample

#2d1cfb text on a white background

contrast 7.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d1cfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d1cfb in the Color Lab