Skip to content

#2d1afd

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

RGB
45, 26, 253
HSL
245°, 98%, 55%
CMYK
82, 90, 0, 1
Luminance
0.0839

Every format

HEX#2d1afd
RGBrgb(45, 26, 253)
HSLhsl(245, 98%, 55%)
CMYKcmyk(82%, 90%, 0%, 1%)
LABlab(34.8 74.4 -102.6)
LCHlch(34.8 126.7 306.0)
OKLCHoklch(0.471 0.296 269.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d1afd on white: 7.84:1
AA ✓ pass · AA-large · AAA
Aa
#2d1afd on black: 2.68:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green10.2%
Blue99.2%

CMYK percentages

Cyan82.2%
Magenta89.7%
Yellow0.0%
Key (black)0.8%

Color previews

#2d1afd text on a black background

contrast 2.68:1

Card sample

#2d1afd text on a white background

contrast 7.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d1afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d1afd in the Color Lab