Skip to content

#403fec

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

RGB
64, 63, 236
HSL
240°, 82%, 59%
CMYK
73, 73, 0, 8
Luminance
0.1070

Every format

HEX#403fec
RGBrgb(64, 63, 236)
HSLhsl(240, 82%, 59%)
CMYKcmyk(73%, 73%, 0%, 8%)
LABlab(39.1 55.1 -85.8)
LCHlch(39.1 102.0 302.7)
OKLCHoklch(0.498 0.249 273.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#403fec on white: 6.69:1
AA ✓ pass · AA-large · AAA
Aa
#403fec on black: 3.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green24.7%
Blue92.5%

CMYK percentages

Cyan72.9%
Magenta73.3%
Yellow0.0%
Key (black)7.5%

Color previews

#403fec text on a black background

contrast 3.14:1

Card sample

#403fec text on a white background

contrast 6.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #403fec

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #403fec in the Color Lab