Maroon Colors  ·  Color Library

Palettes / Colors / #400A4B

#400A4B — Deep Pink

#400A4B is a pink color we call Deep Pink, closest to the named color MidnightBlue (#191970). It belongs to the pink family.

Color name

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

#400A4B is a cool pink color associated with playfulness, romance and softness. 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 #154C0A; it also sits naturally between #200A4C and #4C0A36. In the palettes below you can see it working alongside real color combinations from our collection.

#400A4B · RGB 64, 10, 75

Download PNG swatch SVG

Color values

HEX#400A4B
RGB64, 10, 75
HSL290°, 76%, 17%
HSV290°, 87%, 29%
CMYK15%, 87%, 0%, 71%
XYZ3.49, 1.82, 6.82
Yxy1.82, 0.2879, 0.1496
CIE-Lab14.49, 34.83, -26.88
Hunter Lab13.47, 23.79, -22.15

RGB & CMYK percentages

Red 25% · Green 4% · Blue 29%

Cyan 15% · Magenta 87% · Yellow 0% · Key 71%

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

Previews

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

CSS code for #400A4B

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

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

Shades of #400A4B

#3D0A48#36093F#32083A#2E0736#2A0731#230628#1F0524#1B041F#130316#0F0212

Tints of #400A4B

#600F70#7F1494#9E19B8#BC1EDC#C93EE5#D25DE9#DC81EE#E6A5F3#F0C9F8#FAEDFD

Tones of #400A4B

#3E0F48#3B1443#38193E#351D3A#322235#2F2730

Color harmonies

Complementary — #154C0A:

Analogous:

Triadic:

Contrast & accessibility

Against white text15.41:1 AAA
Against black text1.36:1 Fails

Best text color on #400A4B: #FFFFFF.

Semi-transparent (opacity) text on #400A4B

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

How #400A4B looks with color blindness

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

Protanopia · #29283BDeuteranopia · #2C3038Tritanopia · #3D2F2C

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

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

Similar colors

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

#3A0A4C#45114B#3F134D#3C0753#36064D#420F55#44154C#450C3F#490D40#471454#441752#3D065A

Browse neighbouring colors

← #400A4A  ·  #400A4C →

Frequently asked questions

What color is #400A4B?

#400A4B is Deep Pink, a pink color (RGB 64, 10, 75). Its closest standard named color is MidnightBlue.

What is the RGB and HSL of #400A4B?

#400A4B is RGB 64, 10, 75 — HSL 290°, 76%, 17% — CMYK 15%, 87%, 0%, 71%.

What colors go with #400A4B?

Its complement is #154C0A; analogous partners are #200A4C and #4C0A36. It also appears in 6+ palettes in our collection.

Can I use #400A4B for text?

White text on #400A4B has a contrast ratio of 15.41:1 (passes WCAG AA); black text gives 1.36:1.