Skip to content

#4f4acd

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

RGB
79, 74, 205
HSL
242°, 57%, 55%
CMYK
62, 64, 0, 20
Luminance
0.1097

Every format

HEX#4f4acd
RGBrgb(79, 74, 205)
HSLhsl(242, 57%, 55%)
CMYKcmyk(62%, 64%, 0%, 20%)
LABlab(39.5 40.7 -67.3)
LCHlch(39.5 78.6 301.1)
OKLCHoklch(0.495 0.196 278.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f4acd on white: 6.58:1
AA ✓ pass · AA-large · AAA
Aa
#4f4acd on black: 3.19:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green29.0%
Blue80.4%

CMYK percentages

Cyan61.5%
Magenta63.9%
Yellow0.0%
Key (black)19.6%

Color previews

#4f4acd text on a black background

contrast 3.19:1

Card sample

#4f4acd text on a white background

contrast 6.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(79, 74, 205, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 74, 205, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f4acd;
background: linear-gradient(135deg, #4f4acd, #A64ACD);

Monochromatic scale

Palettes built from #4f4acd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f4acd in the Color Lab