Maroon Colors  ·  Color Library

Palettes / Colors / #331D4E

#331D4E — Deep Muted Purple

#331D4E is a purple color we call Deep Muted 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 #331D4E 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.

#331D4E 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 #384E1D; it also sits naturally between #1D1F4E and #4C1D4E. In the palettes below you can see it working alongside real color combinations from our collection.

#331D4E · RGB 51, 29, 78

Download PNG swatch SVG

Color values

HEX#331D4E
RGB51, 29, 78
HSL267°, 46%, 21%
HSV267°, 63%, 31%
CMYK35%, 63%, 0%, 69%
XYZ3.18, 2.13, 7.45
Yxy2.13, 0.2491, 0.1671
CIE-Lab16.17, 22.45, -26.35
Hunter Lab14.60, 14.31, -21.63

RGB & CMYK percentages

Red 20% · Green 11% · Blue 31%

Cyan 35% · Magenta 63% · Yellow 0% · Key 69%

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

Previews

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

CSS code for #331D4E

.text { color: #331D4E; }
.background { background-color: #331D4E; }
.border { border: 3px solid #331D4E; }
.text-rgb { color: rgb(51, 29, 78); }
.text-hsl { color: hsl(267, 46%, 21%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #331D4E; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(51, 29, 78, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #331D4E; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(51, 29, 78, 0.8); }

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

Shades of #331D4E

#2E1A47#2C1943#27163C#221334#201230#1B0F29#160C22#110A1A#0F0816#0A060F

Tints of #331D4E

#47286C#583286#6B3DA4#7C49BC#9266C7#A480D0#BA9EDB#CCB8E5#E2D6F0#F4F0F9

Tones of #331D4E

#33214A#342447#342843#342B40#352F3D#353239

Color harmonies

Complementary — #384E1D:

Analogous:

Triadic:

Contrast & accessibility

Against white text14.72:1 AAA
Against black text1.43:1 Fails

Best text color on #331D4E: #FFFFFF.

Semi-transparent (opacity) text on #331D4E

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

How #331D4E looks with color blindness

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

Protanopia · #292942Deuteranopia · #2B2C3FTritanopia · #323937

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 #331D4E rather than the exact color:

Gentle Dusk
#BCAADF · #7E5CBC · #5E3AA2 · #311F51
Palette 321e48
#321E48 · #43637E · #65DCD5 · #D9FFF4
Velvet Ruby Orchard
#3FC781 · #174C53 · #2F50AD · #331E56
Serene Zephyr
#342147 · #623556 · #471615 · #70622F
Gentle Monsoon
#371E57 · #62235F · #922D50 · #AF5A3E
Honey Ruby Garden
#AF88C9 · #975ABE · #61377C · #3A2249

Similar colors

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

#311F51#321E48#331E56#342147#371E57#3A2249#3B1E54#322653#2D1351#29154F#3C2347#372948

Browse neighbouring colors

← #331D4D  ·  #331D4F →

Frequently asked questions

What color is #331D4E?

#331D4E is Deep Muted Purple, a purple color (RGB 51, 29, 78). Its closest standard named color is MidnightBlue.

What is the RGB and HSL of #331D4E?

#331D4E is RGB 51, 29, 78 — HSL 267°, 46%, 21% — CMYK 35%, 63%, 0%, 69%.

What colors go with #331D4E?

Its complement is #384E1D; analogous partners are #1D1F4E and #4C1D4E. It also appears in 6+ palettes in our collection.

Can I use #331D4E for text?

White text on #331D4E has a contrast ratio of 14.72:1 (passes WCAG AA); black text gives 1.43:1.