Skip to content

#2d52fc

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

RGB
45, 82, 252
HSL
229°, 97%, 58%
CMYK
82, 68, 0, 1
Luminance
0.1362

Every format

HEX#2d52fc
RGBrgb(45, 82, 252)
HSLhsl(229, 97%, 58%)
CMYKcmyk(82%, 68%, 0%, 1%)
LABlab(43.7 48.2 -87.3)
LCHlch(43.7 99.7 298.9)
OKLCHoklch(0.534 0.253 266.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d52fc on white: 5.64:1
AA ✓ pass · AA-large · AAA
Aa
#2d52fc on black: 3.72:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green32.2%
Blue98.8%

CMYK percentages

Cyan82.1%
Magenta67.5%
Yellow0.0%
Key (black)1.2%

Color previews

#2d52fc text on a black background

contrast 3.72:1

Card sample

#2d52fc text on a white background

contrast 5.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d52fc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d52fc in the Color Lab