Skip to content

#4f4fcc

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

RGB
79, 79, 204
HSL
240°, 55%, 56%
CMYK
61, 61, 0, 20
Luminance
0.1161

Every format

HEX#4f4fcc
RGBrgb(79, 79, 204)
HSLhsl(240, 55%, 56%)
CMYKcmyk(61%, 61%, 0%, 20%)
LABlab(40.6 37.3 -65.0)
LCHlch(40.6 74.9 299.9)
OKLCHoklch(0.503 0.189 277.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f4fcc on white: 6.32:1
AA ✓ pass · AA-large · AAA
Aa
#4f4fcc on black: 3.32:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green31.0%
Blue80.0%

CMYK percentages

Cyan61.3%
Magenta61.3%
Yellow0.0%
Key (black)20.0%

Color previews

#4f4fcc text on a black background

contrast 3.32:1

Card sample

#4f4fcc text on a white background

contrast 6.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f4fcc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f4fcc in the Color Lab