Maroon Colors  ·  Color Library

Palettes / Colors / #331F3A

#331F3A — Deep Dusty Purple

#331F3A 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 #331F3A 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.

#331F3A 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 #25381E; it also sits naturally between #241E38 and #381E32. In the palettes below you can see it working alongside real color combinations from our collection.

#331F3A · RGB 51, 31, 58

Download PNG swatch SVG

Color values

HEX#331F3A
RGB51, 31, 58
HSL284°, 30%, 17%
HSV284°, 47%, 23%
CMYK12%, 47%, 0%, 77%
XYZ2.62, 1.99, 4.25
Yxy1.99, 0.2957, 0.2246
CIE-Lab15.43, 15.54, -13.65
Hunter Lab14.10, 9.36, -9.09

RGB & CMYK percentages

Red 20% · Green 12% · Blue 23%

Cyan 12% · Magenta 47% · Yellow 0% · Key 77%

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

Previews

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

CSS code for #331F3A

.text { color: #331F3A; }
.background { background-color: #331F3A; }
.border { border: 3px solid #331F3A; }
.text-rgb { color: rgb(51, 31, 58); }
.text-hsl { color: hsl(284, 30%, 17%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #331F3A; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(51, 31, 58, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #331F3A; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(51, 31, 58, 0.8); }

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

Shades of #331F3A

#2F1D35#29192E#26172B#231528#201424#1A101E#170E1B#140C17#0F0911#0C070D

Tints of #331F3A

#492D53#603B6D#774988#8E57A2#A170B2#B088BF#C2A2CD#D3BDDB#E5D7EA#F6F2F8

Tones of #331F3A

#312037#302234#2F2433#2E2631#2D272F#2C2A2D

Color harmonies

Complementary — #25381E:

Analogous:

Triadic:

Contrast & accessibility

Against white text15.02:1 AAA
Against black text1.40:1 Fails

Best text color on #331F3A: #FFFFFF.

Semi-transparent (opacity) text on #331F3A

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

How #331F3A looks with color blindness

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

Protanopia · #2A2A33Deuteranopia · #2C2D32Tritanopia · #322E2D

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 #331F3A 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
Palette Dbd8e3
#DBD8E3 · #5C5470 · #352F44 · #2A2438
Palette 352f44
#352F44 · #2A2438 · #411E8F · #310A5D

Similar colors

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

#311D3F#301B3F#2F2342#3C1D3F#2A2438#35143B#371832#3B1C32#332941#3B1735#342147#321E48

Browse neighbouring colors

← #331F39  ·  #331F3B →

Frequently asked questions

What color is #331F3A?

#331F3A is Deep Dusty Purple, a purple color (RGB 51, 31, 58). Its closest standard named color is DarkSlateGray.

What is the RGB and HSL of #331F3A?

#331F3A is RGB 51, 31, 58 — HSL 284°, 30%, 17% — CMYK 12%, 47%, 0%, 77%.

What colors go with #331F3A?

Its complement is #25381E; analogous partners are #241E38 and #381E32. It also appears in 6+ palettes in our collection.

Can I use #331F3A for text?

White text on #331F3A has a contrast ratio of 15.02:1 (passes WCAG AA); black text gives 1.40:1.