Skip to content

#2d2dfe

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

RGB
45, 45, 254
HSL
240°, 99%, 59%
CMYK
82, 82, 0, 0
Luminance
0.0959

Every format

HEX#2d2dfe
RGBrgb(45, 45, 254)
HSLhsl(240, 99%, 59%)
CMYKcmyk(82%, 82%, 0%, 0%)
LABlab(37.1 68.1 -99.3)
LCHlch(37.1 120.4 304.4)
OKLCHoklch(0.487 0.287 268.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d2dfe on white: 7.20:1
AA ✓ pass · AA-large · AAA
Aa
#2d2dfe on black: 2.92:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green17.6%
Blue99.6%

CMYK percentages

Cyan82.3%
Magenta82.3%
Yellow0.0%
Key (black)0.4%

Color previews

#2d2dfe text on a black background

contrast 2.92:1

Card sample

#2d2dfe text on a white background

contrast 7.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d2dfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d2dfe in the Color Lab