Skip to content

#401abc

a dark, electric blue · warm · closest name: navy

RGB
64, 26, 188
HSL
254°, 76%, 42%
CMYK
66, 86, 0, 26
Luminance
0.0546

Every format

HEX#401abc
RGBrgb(64, 26, 188)
HSLhsl(254, 76%, 42%)
CMYKcmyk(66%, 86%, 0%, 26%)
LABlab(28.0 58.0 -76.4)
LCHlch(28.0 95.9 307.2)
OKLCHoklch(0.406 0.224 280.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#401abc on white: 10.04:1
AA ✓ pass · AA-large · AAA
Aa
#401abc on black: 2.09:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green10.2%
Blue73.7%

CMYK percentages

Cyan66.0%
Magenta86.2%
Yellow0.0%
Key (black)26.3%

Color previews

#401abc text on a black background

contrast 2.09:1

Card sample

#401abc text on a white background

contrast 10.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #401abc;
Background color
Panel with #401abc background
background-color: #401abc;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #401abc;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(64, 26, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 26, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #401abc;
background: linear-gradient(135deg, #401abc, #AC1ABC);

Monochromatic scale

Palettes built from #401abc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #401abc in the Color Lab