Skip to content

#403dbb

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

RGB
64, 61, 187
HSL
241°, 51%, 49%
CMYK
66, 67, 0, 27
Luminance
0.0802

Every format

HEX#403dbb
RGBrgb(64, 61, 187)
HSLhsl(241, 51%, 49%)
CMYKcmyk(66%, 67%, 0%, 27%)
LABlab(34.0 40.4 -65.9)
LCHlch(34.0 77.3 301.5)
OKLCHoklch(0.448 0.191 276.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#403dbb on white: 8.07:1
AA ✓ pass · AA-large · AAA
Aa
#403dbb on black: 2.60:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green23.9%
Blue73.3%

CMYK percentages

Cyan65.8%
Magenta67.4%
Yellow0.0%
Key (black)26.7%

Color previews

#403dbb text on a black background

contrast 2.60:1

Card sample

#403dbb text on a white background

contrast 8.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 61, 187, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 61, 187, 0.45);
Border & gradient
Gradient panel
border: 3px solid #403dbb;
background: linear-gradient(135deg, #403dbb, #943DBB);

Monochromatic scale

Palettes built from #403dbb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #403dbb in the Color Lab