Skip to content

#4e2dfd

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

RGB
78, 45, 253
HSL
250°, 98%, 58%
CMYK
69, 82, 0, 1
Luminance
0.1059

Every format

HEX#4e2dfd
RGBrgb(78, 45, 253)
HSLhsl(250, 98%, 58%)
CMYKcmyk(69%, 82%, 0%, 1%)
LABlab(38.9 69.5 -95.7)
LCHlch(38.9 118.3 306.0)
OKLCHoklch(0.504 0.279 276.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4e2dfd on white: 6.74:1
AA ✓ pass · AA-large · AAA
Aa
#4e2dfd on black: 3.12:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red30.6%
Green17.6%
Blue99.2%

CMYK percentages

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

Color previews

#4e2dfd text on a black background

contrast 3.12:1

Card sample

#4e2dfd text on a white background

contrast 6.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4e2dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4e2dfd in the Color Lab