Maroon Colors  ·  Color Library

Palettes / Colors / #331CA5

#331CA5 — Blue

#331CA5 is a blue color we call Blue, closest to the named color DarkSlateBlue (#483D8B). It belongs to the blue family.

Color name

Closest CSS keyword: darkslateblue (#483D8B) — not an exact match. CSS darkslateblue gives you #483D8B, a different color; use #331CA5 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.

#331CA5 is a cool blue color associated with trust, calm and professionalism. 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 #8FA61C; it also sits naturally between #1C4AA6 and #781CA6. In the palettes below you can see it working alongside real color combinations from our collection.

#331CA5 · RGB 51, 28, 165

Download PNG swatch SVG

Color values

HEX#331CA5
RGB51, 28, 165
HSL250°, 71%, 38%
HSV250°, 83%, 65%
CMYK69%, 83%, 0%, 35%
XYZ8.57, 4.25, 35.97
Yxy4.25, 0.1757, 0.0871
CIE-Lab24.48, 49.72, -68.45
Hunter Lab20.62, 39.86, -93.58

RGB & CMYK percentages

Red 20% · Green 11% · Blue 65%

Cyan 69% · Magenta 83% · Yellow 0% · Key 35%

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

Previews

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

CSS code for #331CA5

.text { color: #331CA5; }
.background { background-color: #331CA5; }
.border { border: 3px solid #331CA5; }
.text-rgb { color: rgb(51, 28, 165); }
.text-hsl { color: hsl(250, 71%, 38%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #331CA5; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(51, 28, 165, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #331CA5; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(51, 28, 165, 0.8); }

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

Shades of #331CA5

#2F1A99#2A1787#26157A#201269#1C105C#180D4E#130A3D#0F0830#09051F#050311

Tints of #331CA5

#3B21C0#4325DA#563BDE#6C55E2#836FE7#9A89EB#B0A3EF#C3B9F3#D9D3F8#F0EEFC

Tones of #331CA5

#39269C#402F92#463989#4E447E#544E74#5A576B

Color harmonies

Complementary — #8FA61C:

Analogous:

Triadic:

Contrast & accessibility

Against white text11.35:1 AAA
Against black text1.85:1 Fails

Best text color on #331CA5: #FFFFFF.

Semi-transparent (opacity) text on #331CA5

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

How #331CA5 looks with color blindness

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

Protanopia · #292984Deuteranopia · #2A2C7CTritanopia · #326A64

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:

Material Indigo 500 · #3F51B5Material Deep Purple 500 · #673AB7Tailwind indigo 600 · #4F46E5

Palettes with a similar color

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

Palette F29aae
#F29AAE · #C47BE4 · #7132CA · #301CA0
Wild Mosaic
#2E19A9 · #E0462B · #1ECD38 · #D9D3F4
Crystal Lagoon
#5BE0E2 · #1D67E4 · #3917A7 · #C725E5
Rustic Canyon
#38179F · #9C74EB · #C1E650 · #E0F0BA
Modern Aurora
#31CB53 · #1C9180 · #173F63 · #3325A8
Serene Ruby Marble
#1A817E · #11354D · #192767 · #3E1CA3

Similar colors

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

#301CA0#2E19A9#3917A7#38179F#3325A8#3E1CA3#3E1FA4#361FB0#3F179E#3E15AC#3A18B2#3C2AA5

Browse neighbouring colors

← #331CA4  ·  #331CA6 →

Frequently asked questions

What color is #331CA5?

#331CA5 is Blue, a blue color (RGB 51, 28, 165). Its closest standard named color is DarkSlateBlue.

What is the RGB and HSL of #331CA5?

#331CA5 is RGB 51, 28, 165 — HSL 250°, 71%, 38% — CMYK 69%, 83%, 0%, 35%.

What colors go with #331CA5?

Its complement is #8FA61C; analogous partners are #1C4AA6 and #781CA6. It also appears in 6+ palettes in our collection.

Can I use #331CA5 for text?

White text on #331CA5 has a contrast ratio of 11.35:1 (passes WCAG AA); black text gives 1.85:1.