Skip to content

#704fdf

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

RGB
112, 79, 223
HSL
254°, 69%, 59%
CMYK
50, 65, 0, 13
Luminance
0.1436

Every format

HEX#704fdf
RGBrgb(112, 79, 223)
HSLhsl(254, 69%, 59%)
CMYKcmyk(50%, 65%, 0%, 13%)
LABlab(44.8 48.8 -69.0)
LCHlch(44.8 84.5 305.3)
OKLCHoklch(0.545 0.208 288.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#704fdf on white: 5.42:1
AA ✓ pass · AA-large · AAA
Aa
#704fdf on black: 3.87:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red43.9%
Green31.0%
Blue87.5%

CMYK percentages

Cyan49.8%
Magenta64.6%
Yellow0.0%
Key (black)12.5%

Color previews

#704fdf text on a black background

contrast 3.87:1

Card sample

#704fdf text on a white background

contrast 5.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #704fdf;
Background color
Panel with #704fdf background
background-color: #704fdf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #704fdf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(112, 79, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(112, 79, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #704fdf;
background: linear-gradient(135deg, #704fdf, #D04FDF);

Monochromatic scale

Palettes built from #704fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #704fdf in the Color Lab