Maroon Colors  ·  Color Library

Palettes / Colors / #331C73

#331C73 — Purple

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

#331C73 is a cool purple color associated with luxury, creativity and mystery. It is saturated enough to be the accent — buttons, highlights and calls to action — while neutrals do the quiet work around it.

Its strongest partner is its complement #5C731C; it also sits naturally between #1C3073 and #5F1C73. In the palettes below you can see it working alongside real color combinations from our collection.

#331C73 · RGB 51, 28, 115

Download PNG swatch SVG

Color values

HEX#331C73
RGB51, 28, 115
HSL256°, 61%, 28%
HSV256°, 76%, 45%
CMYK56%, 76%, 0%, 55%
XYZ4.88, 2.77, 16.50
Yxy2.77, 0.2019, 0.1148
CIE-Lab19.11, 34.45, -46.09
Hunter Lab16.65, 24.40, -49.85

RGB & CMYK percentages

Red 20% · Green 11% · Blue 45%

Cyan 56% · Magenta 76% · Yellow 0% · Key 55%

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

Previews

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

CSS code for #331C73

.text { color: #331C73; }
.background { background-color: #331C73; }
.border { border: 3px solid #331C73; }
.text-rgb { color: rgb(51, 28, 115); }
.text-hsl { color: hsl(256, 61%, 28%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #331C73; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(51, 28, 115, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #331C73; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(51, 28, 115, 0.8); }

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

Shades of #331C73

#2F1A6B#2A175E#261556#21124A#1D1042#1A0E39#140B2D#100925#0B0619#070410

Tints of #331C73

#402390#4D2AAC#5830C5#6C46D2#8363D9#9980E0#B09CE7#C4B5ED#DBD2F4#F2EFFB

Tones of #331C73

#36226D#392867#3C2E60#3F355A#423B54#44414E

Color harmonies

Complementary — #5C731C:

Analogous:

Triadic:

Contrast & accessibility

Against white text13.51:1 AAA
Against black text1.55:1 Fails

Best text color on #331C73: #FFFFFF.

Semi-transparent (opacity) text on #331C73

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

How #331C73 looks with color blindness

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

Protanopia · #29295EDeuteranopia · #2A2C59Tritanopia · #324D4A

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:

Tailwind slate 600 · #475569Tailwind gray 600 · #4B5563Tailwind zinc 600 · #52525B

Palettes with a similar color

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

Tender Ruby Meadow
#206241 · #225C7A · #302173 · #2B0F2A
Gentle Tempest
#371D79 · #831F72 · #571713 · #6F6B25
Dreamy Zephyr
#5B8BCF · #2D1F77 · #882CAE · #8C2770
Rustic Ruby Horizon
#40682E · #1B8052 · #142733 · #362370
Palette F2afef
#F2AFEF · #C499F3 · #7360DF · #33186B
Royal Dusk
#115132 · #12374C · #33256D · #742270

Similar colors

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

#302173#371D79#2D1F77#362370#33186B#33256D#2C176C#2E236C#302579#3B2575#3D1E6C#29176D

Browse neighbouring colors

← #331C72  ·  #331C74 →

Frequently asked questions

What color is #331C73?

#331C73 is Purple, a purple color (RGB 51, 28, 115). Its closest standard named color is MidnightBlue.

What is the RGB and HSL of #331C73?

#331C73 is RGB 51, 28, 115 — HSL 256°, 61%, 28% — CMYK 56%, 76%, 0%, 55%.

What colors go with #331C73?

Its complement is #5C731C; analogous partners are #1C3073 and #5F1C73. It also appears in 6+ palettes in our collection.

Can I use #331C73 for text?

White text on #331C73 has a contrast ratio of 13.51:1 (passes WCAG AA); black text gives 1.55:1.