Skip to content

#4d52df

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

RGB
77, 82, 223
HSL
238°, 70%, 59%
CMYK
66, 63, 0, 13
Luminance
0.1294

Every format

HEX#4d52df
RGBrgb(77, 82, 223)
HSLhsl(238, 70%, 59%)
CMYKcmyk(66%, 63%, 0%, 13%)
LABlab(42.7 41.5 -72.5)
LCHlch(42.7 83.5 299.8)
OKLCHoklch(0.523 0.210 274.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4d52df on white: 5.85:1
AA ✓ pass · AA-large · AAA
Aa
#4d52df on black: 3.59:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red30.2%
Green32.2%
Blue87.5%

CMYK percentages

Cyan65.5%
Magenta63.2%
Yellow0.0%
Key (black)12.5%

Color previews

#4d52df text on a black background

contrast 3.59:1

Card sample

#4d52df text on a white background

contrast 5.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4d52df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4d52df in the Color Lab