Maroon Colors  ·  Color Library

Palettes / Colors / #331D65

#331D65 — Deep Purple

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

#331D65 is a cool purple color associated with luxury, creativity and mystery. It sits comfortably in the middle: usable for large areas in soft schemes, or as a supporting color beside something stronger.

Its strongest partner is its complement #4E631D; it also sits naturally between #1D2B63 and #551D63. In the palettes below you can see it working alongside real color combinations from our collection.

#331D65 · RGB 51, 29, 101

Download PNG swatch SVG

Color values

HEX#331D65
RGB51, 29, 101
HSL258°, 55%, 25%
HSV258°, 71%, 40%
CMYK50%, 71%, 0%, 60%
XYZ4.15, 2.52, 12.58
Yxy2.52, 0.2157, 0.1310
CIE-Lab18.02, 29.48, -38.76
Hunter Lab15.88, 20.05, -38.12

RGB & CMYK percentages

Red 20% · Green 11% · Blue 40%

Cyan 50% · Magenta 71% · Yellow 0% · Key 60%

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

Previews

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

CSS code for #331D65

.text { color: #331D65; }
.background { background-color: #331D65; }
.border { border: 3px solid #331D65; }
.text-rgb { color: rgb(51, 29, 101); }
.text-hsl { color: hsl(258, 55%, 25%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #331D65; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(51, 29, 101, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #331D65; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(51, 29, 101, 0.8); }

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

Shades of #331D65

#2E1A5B#2A1853#26164B#221443#1E113B#180E2F#140B28#100920#0C0718#080510

Tints of #331D65

#40257E#4E2D9A#5B35B6#6D45C9#8665D2#9B81DA#B19CE2#C7B8EA#DDD4F2#F3EFFA

Tones of #331D65

#34225E#362759#382C54#3A304F#3C364A#3E3B45

Color harmonies

Complementary — #4E631D:

Analogous:

Triadic:

Contrast & accessibility

Against white text13.96:1 AAA
Against black text1.50:1 Fails

Best text color on #331D65: #FFFFFF.

Semi-transparent (opacity) text on #331D65

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

How #331D65 looks with color blindness

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

Protanopia · #292954Deuteranopia · #2B2C4FTritanopia · #324643

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

Palette F2afef
#F2AFEF · #C499F3 · #7360DF · #33186B
Palette 392467
#392467 · #5D3587 · #A367B1 · #FFD1E3
Palette 17153b
#17153B · #2E236C · #433D8B · #C8ACD6
Palette 2a0944
#2A0944 · #3B185F · #A12568 · #FEC260
Royal Dusk
#115132 · #12374C · #33256D · #742270
Vivid Ruby Meadow
#216732 · #236E63 · #3A7DBE · #282066

Similar colors

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

#33186B#392467#2E236C#3B185F#33256D#282066#3E1E68#2C176C#3B1561#3D1E6C#291A5E#362370

Browse neighbouring colors

← #331D64  ·  #331D66 →

Frequently asked questions

What color is #331D65?

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

What is the RGB and HSL of #331D65?

#331D65 is RGB 51, 29, 101 — HSL 258°, 55%, 25% — CMYK 50%, 71%, 0%, 60%.

What colors go with #331D65?

Its complement is #4E631D; analogous partners are #1D2B63 and #551D63. It also appears in 6+ palettes in our collection.

Can I use #331D65 for text?

White text on #331D65 has a contrast ratio of 13.96:1 (passes WCAG AA); black text gives 1.50:1.