Maroon Colors  ·  Color Library

Palettes / Colors / #331D63

#331D63 — Deep Purple

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

#331D63 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 #4D631D; it also sits naturally between #1D2A63 and #561D63. In the palettes below you can see it working alongside real color combinations from our collection.

#331D63 · RGB 51, 29, 99

Download PNG swatch SVG

Color values

HEX#331D63
RGB51, 29, 99
HSL259°, 55%, 25%
HSV259°, 71%, 39%
CMYK48%, 71%, 0%, 61%
XYZ4.06, 2.48, 12.07
Yxy2.48, 0.2180, 0.1334
CIE-Lab17.84, 28.86, -37.72
Hunter Lab15.76, 19.52, -36.59

RGB & CMYK percentages

Red 20% · Green 11% · Blue 39%

Cyan 48% · Magenta 71% · Yellow 0% · Key 61%

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

Previews

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

CSS code for #331D63

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

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

Shades of #331D63

#2F1A5B#2B1853#27164B#231443#1F113B#180E2F#140B28#100920#0C0718#080510

Tints of #331D63

#41257E#4F2D9A#5E35B6#6F45C9#8765D2#9D81DA#B29CE2#C8B8EA#DDD4F2#F3EFFA

Tones of #331D63

#35225E#372759#392C54#3A304F#3C364A#3E3B45

Color harmonies

Complementary — #4D631D:

Analogous:

Triadic:

Contrast & accessibility

Against white text14.03:1 AAA
Against black text1.50:1 Fails

Best text color on #331D63: #FFFFFF.

Semi-transparent (opacity) text on #331D63

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

How #331D63 looks with color blindness

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

Protanopia · #292952Deuteranopia · #2B2C4ETritanopia · #324542

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 · #4B5563Bootstrap dark · #212529

Palettes with a similar color

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

Palette F2afef
#F2AFEF · #C499F3 · #7360DF · #33186B
Palette 392467
#392467 · #5D3587 · #A367B1 · #FFD1E3
Palette 2a0944
#2A0944 · #3B185F · #A12568 · #FEC260
Tranquil Ruby Garden
#9956DC · #7027BA · #4D1E7B · #3B1561
Radiant Ruby Ember
#291A5E · #6C1962 · #42201F · #24230F
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#3B185F#3B1561#291A5E#282066#2E236C#3E1E68#371E57#33256D#2C176C#331E56

Browse neighbouring colors

← #331D62  ·  #331D64 →

Frequently asked questions

What color is #331D63?

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

What is the RGB and HSL of #331D63?

#331D63 is RGB 51, 29, 99 — HSL 259°, 55%, 25% — CMYK 48%, 71%, 0%, 61%.

What colors go with #331D63?

Its complement is #4D631D; analogous partners are #1D2A63 and #561D63. It also appears in 6+ palettes in our collection.

Can I use #331D63 for text?

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