Skip to content

#4f3baf

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

RGB
79, 59, 175
HSL
250°, 50%, 46%
CMYK
55, 66, 0, 31
Luminance
0.0789

Every format

HEX#4f3baf
RGBrgb(79, 59, 175)
HSLhsl(250, 50%, 46%)
CMYKcmyk(55%, 66%, 0%, 31%)
LABlab(33.7 40.0 -59.1)
LCHlch(33.7 71.4 304.1)
OKLCHoklch(0.446 0.176 284.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f3baf on white: 8.15:1
AA ✓ pass · AA-large · AAA
Aa
#4f3baf on black: 2.58:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green23.1%
Blue68.6%

CMYK percentages

Cyan54.9%
Magenta66.3%
Yellow0.0%
Key (black)31.4%

Color previews

#4f3baf text on a black background

contrast 2.58:1

Card sample

#4f3baf text on a white background

contrast 8.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(79, 59, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 59, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f3baf;
background: linear-gradient(135deg, #4f3baf, #9C3BAF);

Monochromatic scale

Palettes built from #4f3baf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f3baf in the Color Lab