Skip to content

#704dfb

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

RGB
112, 77, 251
HSL
252°, 96%, 64%
CMYK
55, 69, 0, 2
Luminance
0.1572

Every format

HEX#704dfb
RGBrgb(112, 77, 251)
HSLhsl(252, 96%, 64%)
CMYKcmyk(55%, 69%, 0%, 2%)
LABlab(46.6 57.8 -81.7)
LCHlch(46.6 100.1 305.3)
OKLCHoklch(0.565 0.243 284.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#704dfb on white: 5.07:1
AA ✓ pass · AA-large · AAA
Aa
#704dfb on black: 4.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red43.9%
Green30.2%
Blue98.4%

CMYK percentages

Cyan55.4%
Magenta69.3%
Yellow0.0%
Key (black)1.6%

Color previews

#704dfb text on a black background

contrast 4.14:1

Card sample

#704dfb text on a white background

contrast 5.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #704dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #704dfb in the Color Lab