Skip to content

#4d2fdb

a balanced, vivid blue · warm · closest name: navy

RGB
77, 47, 219
HSL
251°, 71%, 52%
CMYK
65, 79, 0, 14
Luminance
0.0873

Every format

HEX#4d2fdb
RGBrgb(77, 47, 219)
HSLhsl(251, 71%, 52%)
CMYKcmyk(65%, 79%, 0%, 14%)
LABlab(35.5 59.2 -82.1)
LCHlch(35.5 101.2 305.8)
OKLCHoklch(0.470 0.240 279.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4d2fdb on white: 7.65:1
AA ✓ pass · AA-large · AAA
Aa
#4d2fdb on black: 2.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red30.2%
Green18.4%
Blue85.9%

CMYK percentages

Cyan64.8%
Magenta78.5%
Yellow0.0%
Key (black)14.1%

Color previews

#4d2fdb text on a black background

contrast 2.75:1

Card sample

#4d2fdb text on a white background

contrast 7.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4d2fdb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4d2fdb in the Color Lab