Skip to content

#4f4f9d

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

RGB
79, 79, 157
HSL
240°, 33%, 46%
CMYK
50, 50, 0, 38
Luminance
0.0969

Every format

HEX#4f4f9d
RGBrgb(79, 79, 157)
HSLhsl(240, 33%, 46%)
CMYKcmyk(50%, 50%, 0%, 38%)
LABlab(37.3 21.9 -42.6)
LCHlch(37.3 48.0 297.2)
OKLCHoklch(0.468 0.123 280.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f4f9d on white: 7.15:1
AA ✓ pass · AA-large · AAA
Aa
#4f4f9d on black: 2.94:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green31.0%
Blue61.6%

CMYK percentages

Cyan49.7%
Magenta49.7%
Yellow0.0%
Key (black)38.4%

Color previews

#4f4f9d text on a black background

contrast 2.94:1

Card sample

#4f4f9d text on a white background

contrast 7.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f4f9d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f4f9d in the Color Lab