Maroon Colors  ·  Color Library

Palettes / Colors / #400A5A

#400A5A — Deep Vivid Purple

#400A5A is a purple color we call Deep Vivid Purple, closest to the named color Indigo (#4B0082). It belongs to the purple family.

Color name

Closest CSS keyword: indigo (#4B0082) — not an exact match. CSS indigo gives you #4B0082, a different color; use #400A5A when you need this exact shade.

Sources: common names follow widely used color-name references; CSS keywords and their hex values follow the CSS Color specification.

#400A5A is a cool purple color associated with luxury, creativity and mystery. It is deep enough for text, outlines and dark interface surfaces, and makes light colors glow next to it.

Its strongest partner is its complement #245C0A; it also sits naturally between #190A5C and #5C0A4D. In the palettes below you can see it working alongside real color combinations from our collection.

#400A5A · RGB 64, 10, 90

Download PNG swatch SVG

Color values

HEX#400A5A
RGB64, 10, 90
HSL281°, 80%, 20%
HSV281°, 89%, 35%
CMYK29%, 89%, 0%, 65%
XYZ4.07, 2.05, 9.85
Yxy2.05, 0.2548, 0.1281
CIE-Lab15.72, 38.17, -35.10
Hunter Lab14.30, 26.94, -32.83

RGB & CMYK percentages

Red 25% · Green 4% · Blue 35%

Cyan 29% · Magenta 89% · Yellow 0% · Key 65%

CMYK values are unprofiled approximations for screen reference — not a print-proofing guarantee.

Previews

Sample text in #400A5A on black
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sample text in #400A5A on white
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

CSS code for #400A5A

.text { color: #400A5A; }
.background { background-color: #400A5A; }
.border { border: 3px solid #400A5A; }
.text-rgb { color: rgb(64, 10, 90); }
.text-hsl { color: hsl(281, 80%, 20%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #400A5A; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(64, 10, 90, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #400A5A; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(64, 10, 90, 0.8); }

HTML: <p style="color:#400A5A">Text here</p> · <div style="background-color:#400A5A">Div content here</div>

Shades of #400A5A

#3B0953#38094E#310845#2E0740#280637#21052E#1E0529#170420#14031C#0D0212

Tints of #400A5A

#5C0E81#7312A1#8E16C5#A519E6#B33EEA#C263EE#CE83F1#DDA8F5#E9C8F9#F8EDFD

Tones of #400A5A

#401056#3E1650#3C1C4A#392244#37273F#352D39

Color harmonies

Complementary — #245C0A:

Analogous:

Triadic:

Contrast & accessibility

Against white text14.90:1 AAA
Against black text1.41:1 Fails

Best text color on #400A5A: #FFFFFF.

Semi-transparent (opacity) text on #400A5A

Text set with opacity blends into the background, so its real contrast is lower than the solid ratios above. Choose a text color and an opacity to see the blended color and its true ratio:

100%
Sample heading text
Smaller body text shows the effect best.

Blended color: · Contrast against #400A5A: ·

How #400A5A looks with color blindness

Simulated with standard Machado color-vision-deficiency matrices — useful when this color carries meaning in charts, maps or interfaces:

Protanopia · #292847Deuteranopia · #2C3042Tritanopia · #3D3734

Closest design-system colors

The nearest matches in the Tailwind CSS, Material Design and Bootstrap palettes — handy when you need a framework class instead of a raw hex:

Bootstrap dark · #212529Tailwind zinc 600 · #52525BTailwind neutral 600 · #525252

Palettes with a similar color

These palettes use a close neighbour of #400A5A rather than the exact color:

Palette 430a5d
#430A5D · #5F374B · #8C6A5D · #EEE4B1
Palette 3d065a
#3D065A · #B51A62 · #70D4B4 · #DDDDC7
Electric Twilight
#4D23DE · #420F55 · #C532A3 · #B12248
Palette 39065a
#39065A · #6A0572 · #9A0F98 · #EA0599
Palette 030637
#030637 · #3C0753 · #720455 · #910A67
Modern Ruby Tempest
#421358 · #6E2B47 · #7B4D20 · #3C5419

Similar colors

The closest colors that actually appear in our palette collection — click any to open its page:

#430A5D#3D065A#420F55#39065A#3C0753#421358#471454#440A67#3B1561#3E1365#3A0A4C#310A5D

Browse neighbouring colors

← #400A59  ·  #400A5B →

Frequently asked questions

What color is #400A5A?

#400A5A is Deep Vivid Purple, a purple color (RGB 64, 10, 90). Its closest standard named color is Indigo.

What is the RGB and HSL of #400A5A?

#400A5A is RGB 64, 10, 90 — HSL 281°, 80%, 20% — CMYK 29%, 89%, 0%, 65%.

What colors go with #400A5A?

Its complement is #245C0A; analogous partners are #190A5C and #5C0A4D. It also appears in 6+ palettes in our collection.

Can I use #400A5A for text?

White text on #400A5A has a contrast ratio of 14.90:1 (passes WCAG AA); black text gives 1.41:1.