Maroon Colors  ·  Color Library

Palettes / Colors / #400A4E

#400A4E — Deep Purple

#400A4E is a purple color we call Deep Purple, closest to the named color MidnightBlue (#191970). It belongs to the purple family.

Color name

Closest CSS keyword: midnightblue (#191970) — not an exact match. CSS midnightblue gives you #191970, a different color; use #400A4E 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.

#400A4E 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 #174D0A; it also sits naturally between #1E0A4D and #4D0A39. In the palettes below you can see it working alongside real color combinations from our collection.

#400A4E · RGB 64, 10, 78

Download PNG swatch SVG

Color values

HEX#400A4E
RGB64, 10, 78
HSL288°, 77%, 17%
HSV288°, 87%, 31%
CMYK18%, 87%, 0%, 69%
XYZ3.60, 1.86, 7.38
Yxy1.86, 0.2804, 0.1447
CIE-Lab14.72, 35.48, -28.57
Hunter Lab13.63, 24.39, -24.19

RGB & CMYK percentages

Red 25% · Green 4% · Blue 31%

Cyan 18% · Magenta 87% · Yellow 0% · Key 69%

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

Previews

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

CSS code for #400A4E

.text { color: #400A4E; }
.background { background-color: #400A4E; }
.border { border: 3px solid #400A4E; }
.text-rgb { color: rgb(64, 10, 78); }
.text-hsl { color: hsl(288, 77%, 17%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #400A4E; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(64, 10, 78, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #400A4E; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(64, 10, 78, 0.8); }

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

Shades of #400A4E

#3C0948#34083F#30083B#2D0736#290632#220529#1E0524#1A0420#130317#0F0212

Tints of #400A4E

#5D0F71#7B1395#9918B9#B71DDD#C43DE6#CE5DEA#D981EF#E4A5F3#EFC9F8#FAEDFD

Tones of #400A4E

#3D0F48#3A1443#37183E#341D3A#312235#2E2730

Color harmonies

Complementary — #174D0A:

Analogous:

Triadic:

Contrast & accessibility

Against white text15.31:1 AAA
Against black text1.37:1 Fails

Best text color on #400A4E: #FFFFFF.

Semi-transparent (opacity) text on #400A4E

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 #400A4E: ·

How #400A4E looks with color blindness

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

Protanopia · #29283EDeuteranopia · #2C303ATritanopia · #3D312E

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 neutral 600 · #525252Tailwind zinc 600 · #52525B

Palettes with a similar color

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

Misty Canyon
#DAA5EE · #CD82E9 · #741895 · #3A0A4C
Palette 030637
#030637 · #3C0753 · #720455 · #910A67
Electric Twilight
#4D23DE · #420F55 · #C532A3 · #B12248
Hidden Ruby Harbor
#C06ADD · #A52CCE · #9225B6 · #3F134D
Honey Ruby Harbor
#EDCBF1 · #D889E1 · #B931C9 · #45114B
Palette F7f6e5
#F7F6E5 · #76D2DB · #DA4848 · #36064D

Similar colors

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

#3A0A4C#3C0753#420F55#3F134D#45114B#36064D#44154C#3D065A#471454#421358#441752#39065A

Browse neighbouring colors

← #400A4D  ·  #400A4F →

Frequently asked questions

What color is #400A4E?

#400A4E is Deep Purple, a purple color (RGB 64, 10, 78). Its closest standard named color is MidnightBlue.

What is the RGB and HSL of #400A4E?

#400A4E is RGB 64, 10, 78 — HSL 288°, 77%, 17% — CMYK 18%, 87%, 0%, 69%.

What colors go with #400A4E?

Its complement is #174D0A; analogous partners are #1E0A4D and #4D0A39. It also appears in 6+ palettes in our collection.

Can I use #400A4E for text?

White text on #400A4E has a contrast ratio of 15.31:1 (passes WCAG AA); black text gives 1.37:1.