Maroon Colors  ·  Color Library

Palettes / Colors / #331BA9

#331BA9 — Blue

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

#331BA9 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 #8FA71B; it also sits naturally between #1B4AA7 and #781BA7. In the palettes below you can see it working alongside real color combinations from our collection.

#331BA9 · RGB 51, 27, 169

Download PNG swatch SVG

Color values

HEX#331BA9
RGB51, 27, 169
HSL250°, 72%, 38%
HSV250°, 84%, 66%
CMYK70%, 84%, 0%, 34%
XYZ8.92, 4.35, 37.91
Yxy4.35, 0.1743, 0.0850
CIE-Lab24.80, 51.33, -70.34
Hunter Lab20.86, 41.57, -97.89

RGB & CMYK percentages

Red 20% · Green 11% · Blue 66%

Cyan 70% · Magenta 84% · Yellow 0% · Key 34%

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

Previews

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

CSS code for #331BA9

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

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

Shades of #331BA9

#2E199A#291688#25147B#201169#1C0F5C#180D4F#130A3D#0F0830#09051F#050312

Tints of #331BA9

#3A1FC1#4224DB#553ADF#6C54E3#826EE7#9989EC#B0A3F0#C3B9F4#D9D3F8#F0EDFC

Tones of #331BA9

#39259D#402F92#463989#4D437F#534D75#5A576B

Color harmonies

Complementary — #8FA71B:

Analogous:

Triadic:

Contrast & accessibility

Against white text11.23:1 AAA
Against black text1.87:1 Fails

Best text color on #331BA9: #FFFFFF.

Semi-transparent (opacity) text on #331BA9

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

How #331BA9 looks with color blindness

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

Protanopia · #292887Deuteranopia · #2A2C7ETritanopia · #326C66

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

Wild Mosaic
#2E19A9 · #E0462B · #1ECD38 · #D9D3F4
Crystal Lagoon
#5BE0E2 · #1D67E4 · #3917A7 · #C725E5
Wild Orchard
#178328 · #361FB0 · #D64126 · #CDF0D0
Palette F29aae
#F29AAE · #C47BE4 · #7132CA · #301CA0
Modern Aurora
#31CB53 · #1C9180 · #173F63 · #3325A8
Silent Monsoon
#20C0E8 · #194ED1 · #3A18B2 · #AD2FDA

Similar colors

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

#2E19A9#3917A7#361FB0#301CA0#3325A8#3A18B2#38179F#3E1CA3#3E1FA4#3E15AC#361BB6#2919B2

Browse neighbouring colors

← #331BA8  ·  #331BAA →

Frequently asked questions

What color is #331BA9?

#331BA9 is Blue, a blue color (RGB 51, 27, 169). Its closest standard named color is DarkSlateBlue.

What is the RGB and HSL of #331BA9?

#331BA9 is RGB 51, 27, 169 — HSL 250°, 72%, 38% — CMYK 70%, 84%, 0%, 34%.

What colors go with #331BA9?

Its complement is #8FA71B; analogous partners are #1B4AA7 and #781BA7. It also appears in 6+ palettes in our collection.

Can I use #331BA9 for text?

White text on #331BA9 has a contrast ratio of 11.23:1 (passes WCAG AA); black text gives 1.87:1.