Skip to content

#2d4dfe

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

RGB
45, 77, 254
HSL
231°, 99%, 59%
CMYK
82, 70, 0, 0
Luminance
0.1302

Every format

HEX#2d4dfe
RGBrgb(45, 77, 254)
HSLhsl(231, 99%, 59%)
CMYKcmyk(82%, 70%, 0%, 0%)
LABlab(42.8 51.8 -89.8)
LCHlch(42.8 103.7 300.0)
OKLCHoklch(0.528 0.261 267.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d4dfe on white: 5.83:1
AA ✓ pass · AA-large · AAA
Aa
#2d4dfe on black: 3.60:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green30.2%
Blue99.6%

CMYK percentages

Cyan82.3%
Magenta69.7%
Yellow0.0%
Key (black)0.4%

Color previews

#2d4dfe text on a black background

contrast 3.60:1

Card sample

#2d4dfe text on a white background

contrast 5.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d4dfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d4dfe in the Color Lab