Skip to content

#403ace

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

RGB
64, 58, 206
HSL
242°, 60%, 52%
CMYK
69, 72, 0, 19
Luminance
0.0857

Every format

HEX#403ace
RGBrgb(64, 58, 206)
HSLhsl(242, 60%, 52%)
CMYKcmyk(69%, 72%, 0%, 19%)
LABlab(35.1 48.3 -75.1)
LCHlch(35.1 89.3 302.8)
OKLCHoklch(0.462 0.218 275.4)

Copy-ready code

/* CSS */
color: #403ace;
background-color: #403ace;
/* Tailwind (arbitrary) */
class="text-[#403ace] bg-[#403ace]"
/* SCSS */
$brand: #403ace;
/* SwiftUI */
Color(red: 0.251, green: 0.227, blue: 0.808)
/* Android */
Color.parseColor("#403ace")

Accessibility — WCAG contrast

Aa
#403ace on white: 7.74:1
AA ✓ pass · AA-large · AAA
Aa
#403ace on black: 2.71:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green22.7%
Blue80.8%

CMYK percentages

Cyan68.9%
Magenta71.8%
Yellow0.0%
Key (black)19.2%

Color previews

#403ace text on a black background

contrast 2.71:1

Card sample

#403ace text on a white background

contrast 7.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #403ace;
Background color
Panel with #403ace background
background-color: #403ace;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #403ace;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(64, 58, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 58, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #403ace;
background: linear-gradient(135deg, #403ace, #A33ACE);

Monochromatic scale

Palettes built from #403ace

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #403ace in the Color Lab