Skip to content

#4f45cf

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

RGB
79, 69, 207
HSL
244°, 59%, 54%
CMYK
62, 67, 0, 19
Luminance
0.1042

Every format

HEX#4f45cf
RGBrgb(79, 69, 207)
HSLhsl(244, 59%, 54%)
CMYKcmyk(62%, 67%, 0%, 19%)
LABlab(38.6 44.3 -70.0)
LCHlch(38.6 82.8 302.3)
OKLCHoklch(0.489 0.204 278.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f45cf on white: 6.81:1
AA ✓ pass · AA-large · AAA
Aa
#4f45cf on black: 3.08:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green27.1%
Blue81.2%

CMYK percentages

Cyan61.8%
Magenta66.7%
Yellow0.0%
Key (black)18.8%

Color previews

#4f45cf text on a black background

contrast 3.08:1

Card sample

#4f45cf text on a white background

contrast 6.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f45cf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f45cf in the Color Lab