Maroon Colors  ·  Color Library

Palettes / Colors / #402D4E

#402D4E — Deep Dusty Purple

#402D4E is a purple color we call Deep Dusty Purple, closest to the named color DarkSlateGray (#2F4F4F). It belongs to the purple family.

Color name

Closest CSS keyword: darkslategray (#2F4F4F) — not an exact match. CSS darkslategray gives you #2F4F4F, a different color; use #402D4E 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.

#402D4E is a cool purple color associated with luxury, creativity and mystery. It sits comfortably in the middle: usable for large areas in soft schemes, or as a supporting color beside something stronger.

Its strongest partner is its complement #3A4E2D; it also sits naturally between #2F2D4E and #4E2D4B. In the palettes below you can see it working alongside real color combinations from our collection.

#402D4E · RGB 64, 45, 78

Download PNG swatch SVG

Color values

HEX#402D4E
RGB64, 45, 78
HSL275°, 27%, 24%
HSV275°, 42%, 31%
CMYK18%, 42%, 0%, 69%
XYZ4.43, 3.52, 7.65
Yxy3.52, 0.2839, 0.2255
CIE-Lab22.01, 16.10, -17.01
Hunter Lab18.75, 10.49, -12.55

RGB & CMYK percentages

Red 25% · Green 18% · Blue 31%

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

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

Previews

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

CSS code for #402D4E

.text { color: #402D4E; }
.background { background-color: #402D4E; }
.border { border: 3px solid #402D4E; }
.text-rgb { color: rgb(64, 45, 78); }
.text-hsl { color: hsl(275, 27%, 24%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #402D4E; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(64, 45, 78, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #402D4E; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(64, 45, 78, 0.8); }

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

Shades of #402D4E

#3B2947#352541#30223A#2B1E34#251A2D#201627#1B1320#150F1A#100B13#0B070D

Tints of #402D4E

#533A64#65477B#7B5695#8D67A8#9E7DB5#AF94C2#C0ABCF#D3C5DD#E4DBEB#F5F2F8

Tones of #402D4E

#402F4B#3F3249#3F3446#3E3645#3E3842#3E3B40

Color harmonies

Complementary — #3A4E2D:

Analogous:

Triadic:

Contrast & accessibility

Against white text12.33:1 AAA
Against black text1.70:1 Fails

Best text color on #402D4E: #FFFFFF.

Semi-transparent (opacity) text on #402D4E

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 #402D4E: ·

How #402D4E looks with color blindness

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

Protanopia · #383846Deuteranopia · #393A44Tritanopia · #3F403E

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:

Tailwind neutral 600 · #525252Tailwind zinc 600 · #52525BTailwind stone 600 · #57534E

Palettes with a similar color

These palettes use a close neighbour of #402D4E rather than the exact color:

Silent Ruby Summit
#197371 · #141E3F · #402C52 · #7D2361
Palette 1f1d36
#1F1D36 · #3F3351 · #864879 · #E9A6A6
Palette 432e54
#432E54 · #4B4376 · #AE445A · #E8BCB9
Palette F8f4ec
#F8F4EC · #FF8FB7 · #E83C91 · #43334C
Palette Ffed8f
#FFED8F · #A7D46F · #359768 · #3C3352
Palette 635985
#635985 · #443C68 · #393053 · #18122B

Similar colors

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

#402C52#3F3351#432E54#43334C#3C3352#393053#362F4F#432F44#372948#482D57#40394A#3C2347

Browse neighbouring colors

← #402D4D  ·  #402D4F →

Frequently asked questions

What color is #402D4E?

#402D4E is Deep Dusty Purple, a purple color (RGB 64, 45, 78). Its closest standard named color is DarkSlateGray.

What is the RGB and HSL of #402D4E?

#402D4E is RGB 64, 45, 78 — HSL 275°, 27%, 24% — CMYK 18%, 42%, 0%, 69%.

What colors go with #402D4E?

Its complement is #3A4E2D; analogous partners are #2F2D4E and #4E2D4B. It also appears in 6+ palettes in our collection.

Can I use #402D4E for text?

White text on #402D4E has a contrast ratio of 12.33:1 (passes WCAG AA); black text gives 1.70:1.