Skip to content

#2d2afe

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

RGB
45, 42, 254
HSL
241°, 99%, 58%
CMYK
82, 84, 0, 0
Luminance
0.0937

Every format

HEX#2d2afe
RGBrgb(45, 42, 254)
HSLhsl(241, 99%, 58%)
CMYKcmyk(82%, 84%, 0%, 0%)
LABlab(36.7 69.3 -100.0)
LCHlch(36.7 121.6 304.7)
OKLCHoklch(0.485 0.289 269.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d2afe on white: 7.31:1
AA ✓ pass · AA-large · AAA
Aa
#2d2afe on black: 2.87:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green16.5%
Blue99.6%

CMYK percentages

Cyan82.3%
Magenta83.5%
Yellow0.0%
Key (black)0.4%

Color previews

#2d2afe text on a black background

contrast 2.87:1

Card sample

#2d2afe text on a white background

contrast 7.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d2afe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d2afe in the Color Lab