Maroon Colors  ·  Color Library

Palettes / Colors / #400A4C

#400A4C — Deep Purple

#400A4C 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 #400A4C 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.

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

#400A4C · RGB 64, 10, 76

Download PNG swatch SVG

Color values

HEX#400A4C
RGB64, 10, 76
HSL289°, 77%, 17%
HSV289°, 87%, 30%
CMYK16%, 87%, 0%, 70%
XYZ3.53, 1.83, 7.00
Yxy1.83, 0.2854, 0.1480
CIE-Lab14.56, 35.05, -27.44
Hunter Lab13.52, 23.99, -22.82

RGB & CMYK percentages

Red 25% · Green 4% · Blue 30%

Cyan 16% · Magenta 87% · Yellow 0% · Key 70%

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

Previews

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

CSS code for #400A4C

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

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

Shades of #400A4C

#3D0948#35083F#31083B#2E0736#2A0632#220529#1E0524#1B0420#130317#0F0212

Tints of #400A4C

#5F0F71#7D1395#9C18B9#BA1DDD#C73DE6#D05DEA#DA81EF#E5A5F3#EFC9F8#FAEDFD

Tones of #400A4C

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

Color harmonies

Complementary — #164D0A:

Analogous:

Triadic:

Contrast & accessibility

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

Best text color on #400A4C: #FFFFFF.

Semi-transparent (opacity) text on #400A4C

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

How #400A4C looks with color blindness

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

Protanopia · #29283CDeuteranopia · #2C3038Tritanopia · #3D2F2D

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 #400A4C rather than the exact color:

Misty Canyon
#DAA5EE · #CD82E9 · #741895 · #3A0A4C
Palette 030637
#030637 · #3C0753 · #720455 · #910A67
Honey Ruby Harbor
#EDCBF1 · #D889E1 · #B931C9 · #45114B
Hidden Ruby Harbor
#C06ADD · #A52CCE · #9225B6 · #3F134D
Electric Twilight
#4D23DE · #420F55 · #C532A3 · #B12248
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#45114B#3F134D#420F55#36064D#44154C#450C3F#471454#3D065A#441752#421358

Browse neighbouring colors

← #400A4B  ·  #400A4D →

Frequently asked questions

What color is #400A4C?

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

What is the RGB and HSL of #400A4C?

#400A4C is RGB 64, 10, 76 — HSL 289°, 77%, 17% — CMYK 16%, 87%, 0%, 70%.

What colors go with #400A4C?

Its complement is #164D0A; analogous partners are #1F0A4D and #4D0A38. It also appears in 6+ palettes in our collection.

Can I use #400A4C for text?

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