Skip to content

#4d2cfb

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

RGB
77, 44, 251
HSL
250°, 96%, 58%
CMYK
69, 83, 0, 2
Luminance
0.1034

Every format

HEX#4d2cfb
RGBrgb(77, 44, 251)
HSLhsl(250, 96%, 58%)
CMYKcmyk(69%, 83%, 0%, 2%)
LABlab(38.5 69.3 -95.3)
LCHlch(38.5 117.8 306.0)
OKLCHoklch(0.501 0.277 276.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4d2cfb on white: 6.84:1
AA ✓ pass · AA-large · AAA
Aa
#4d2cfb on black: 3.07:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red30.2%
Green17.3%
Blue98.4%

CMYK percentages

Cyan69.3%
Magenta82.5%
Yellow0.0%
Key (black)1.6%

Color previews

#4d2cfb text on a black background

contrast 3.07:1

Card sample

#4d2cfb text on a white background

contrast 6.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(77, 44, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(77, 44, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4d2cfb;
background: linear-gradient(135deg, #4d2cfb, #D72CFB);

Monochromatic scale

Palettes built from #4d2cfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4d2cfb in the Color Lab