Maroon Colors  ·  Color Library

Palettes / Colors / #331D3F

#331D3F — Deep Muted Purple

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

#331D3F 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 #293F1D; it also sits naturally between #221D3F and #3F1D3A. In the palettes below you can see it working alongside real color combinations from our collection.

#331D3F · RGB 51, 29, 63

Download PNG swatch SVG

Color values

HEX#331D3F
RGB51, 29, 63
HSL279°, 37%, 18%
HSV279°, 54%, 25%
CMYK19%, 54%, 0%, 75%
XYZ2.70, 1.94, 4.93
Yxy1.94, 0.2821, 0.2027
CIE-Lab15.18, 18.21, -17.55
Hunter Lab13.93, 11.15, -12.47

RGB & CMYK percentages

Red 20% · Green 11% · Blue 25%

Cyan 19% · Magenta 54% · Yellow 0% · Key 75%

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

Previews

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

CSS code for #331D3F

.text { color: #331D3F; }
.background { background-color: #331D3F; }
.border { border: 3px solid #331D3F; }
.text-rgb { color: rgb(51, 29, 63); }
.text-hsl { color: hsl(279, 37%, 18%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #331D3F; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(51, 29, 63, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #331D3F; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(51, 29, 63, 0.8); }

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

Shades of #331D3F

#301B3B#2A1834#281631#22132A#1F1226#1C1023#170D1C#140B18#0E0811#0B060E

Tints of #331D3F

#4A2A5B#603777#74428F#8B4FAB#9E69BA#B085C7#C2A1D4#D2B9DF#E4D5EC#F6F1F9

Tones of #331D3F

#321F3D#31223A#312438#302735#2F2933#2F2C30

Color harmonies

Complementary — #293F1D:

Analogous:

Triadic:

Contrast & accessibility

Against white text15.13:1 AAA
Against black text1.39:1 Fails

Best text color on #331D3F: #FFFFFF.

Semi-transparent (opacity) text on #331D3F

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

How #331D3F looks with color blindness

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

Protanopia · #292937Deuteranopia · #2B2C35Tritanopia · #32302F

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 stone 600 · #57534E

Palettes with a similar color

These palettes use a close neighbour of #331D3F rather than the exact color:

Palette E23e57
#E23E57 · #88304E · #522546 · #311D3F
Palette 151515
#151515 · #301B3F · #3C415C · #B4A5A5
Palette 2f2342
#2F2342 · #E42F45 · #B42B3F · #7CA0E5
Electric Ruby Tempest
#E1BEE4 · #A661AD · #612E66 · #3C1D3F
Serene Zephyr
#342147 · #623556 · #471615 · #70622F
Palette 321e48
#321E48 · #43637E · #65DCD5 · #D9FFF4

Similar colors

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

#311D3F#301B3F#2F2342#3C1D3F#342147#321E48#35143B#321242#332941#3A2249#2A2438#3C2347

Browse neighbouring colors

← #331D3E  ·  #331D40 →

Frequently asked questions

What color is #331D3F?

#331D3F is Deep Muted Purple, a purple color (RGB 51, 29, 63). Its closest standard named color is DarkSlateGray.

What is the RGB and HSL of #331D3F?

#331D3F is RGB 51, 29, 63 — HSL 279°, 37%, 18% — CMYK 19%, 54%, 0%, 75%.

What colors go with #331D3F?

Its complement is #293F1D; analogous partners are #221D3F and #3F1D3A. It also appears in 6+ palettes in our collection.

Can I use #331D3F for text?

White text on #331D3F has a contrast ratio of 15.13:1 (passes WCAG AA); black text gives 1.39:1.