Maroon Colors  ·  Color Library

Palettes / Colors / #331B43

#331B43 — Deep Muted Purple

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

#331B43 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 #2A421A; it also sits naturally between #1E1A42 and #421A3E. In the palettes below you can see it working alongside real color combinations from our collection.

#331B43 · RGB 51, 27, 67

Download PNG swatch SVG

Color values

HEX#331B43
RGB51, 27, 67
HSL276°, 43%, 18%
HSV276°, 60%, 26%
CMYK24%, 60%, 0%, 74%
XYZ2.77, 1.89, 5.53
Yxy1.89, 0.2718, 0.1857
CIE-Lab14.91, 20.62, -20.76
Hunter Lab13.76, 12.80, -15.52

RGB & CMYK percentages

Red 20% · Green 11% · Blue 26%

Cyan 24% · Magenta 60% · Yellow 0% · Key 74%

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

Previews

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

CSS code for #331B43

.text { color: #331B43; }
.background { background-color: #331B43; }
.border { border: 3px solid #331B43; }
.text-rgb { color: rgb(51, 27, 67); }
.text-hsl { color: hsl(276, 43%, 18%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #331B43; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(51, 27, 67, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #331B43; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(51, 27, 67, 0.8); }

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

Shades of #331B43

#2F193E#2A1637#271433#21112C#1E1028#1C0F24#160C1D#130A1A#0E0712#0B060F

Tints of #331B43

#48265F#5E317C#723C96#8847B3#9B62C0#AD7FCC#C09DD8#D0B6E2#E3D3EE#F6F0F9

Tones of #331B43

#311D3F#31203C#302239#302636#2F2833#2E2B31

Color harmonies

Complementary — #2A421A:

Analogous:

Triadic:

Contrast & accessibility

Against white text15.23:1 AAA
Against black text1.38:1 Fails

Best text color on #331B43: #FFFFFF.

Semi-transparent (opacity) text on #331B43

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

How #331B43 looks with color blindness

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

Protanopia · #292839Deuteranopia · #2A2C37Tritanopia · #323230

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

Palette E23e57
#E23E57 · #88304E · #522546 · #311D3F
Palette 151515
#151515 · #301B3F · #3C415C · #B4A5A5
Palette 321e48
#321E48 · #43637E · #65DCD5 · #D9FFF4
Serene Zephyr
#342147 · #623556 · #471615 · #70622F
Palette 2f2342
#2F2342 · #E42F45 · #B42B3F · #7CA0E5
Scarlet Ruby Lagoon
#4E35A5 · #321242 · #5D1754 · #401527

Similar colors

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

#311D3F#301B3F#321E48#342147#2F2342#321242#3C1D3F#35143B#3A2249#2D1141#3C2347#30103D

Browse neighbouring colors

← #331B42  ·  #331B44 →

Frequently asked questions

What color is #331B43?

#331B43 is Deep Muted Purple, a purple color (RGB 51, 27, 67). Its closest standard named color is MidnightBlue.

What is the RGB and HSL of #331B43?

#331B43 is RGB 51, 27, 67 — HSL 276°, 43%, 18% — CMYK 24%, 60%, 0%, 74%.

What colors go with #331B43?

Its complement is #2A421A; analogous partners are #1E1A42 and #421A3E. It also appears in 6+ palettes in our collection.

Can I use #331B43 for text?

White text on #331B43 has a contrast ratio of 15.23:1 (passes WCAG AA); black text gives 1.38:1.