Skip to content

#4c2dfd

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

RGB
76, 45, 253
HSL
249°, 98%, 58%
CMYK
70, 82, 0, 1
Luminance
0.1051

Every format

HEX#4c2dfd
RGBrgb(76, 45, 253)
HSLhsl(249, 98%, 58%)
CMYKcmyk(70%, 82%, 0%, 1%)
LABlab(38.7 69.4 -95.9)
LCHlch(38.7 118.4 305.9)
OKLCHoklch(0.503 0.279 276.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4c2dfd on white: 6.77:1
AA ✓ pass · AA-large · AAA
Aa
#4c2dfd on black: 3.10:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red29.8%
Green17.6%
Blue99.2%

CMYK percentages

Cyan70.0%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#4c2dfd text on a black background

contrast 3.10:1

Card sample

#4c2dfd text on a white background

contrast 6.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4c2dfd;
Background color
Panel with #4c2dfd background
background-color: #4c2dfd;
Text shadow — hex

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4c2dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4c2dfd in the Color Lab