Maroon Colors  ·  Color Library

Palettes / Colors / #331FBC

#331FBC — Blue

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

#331FBC 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 #A8BD1F; it also sits naturally between #1F59BD and #831FBD. In the palettes below you can see it working alongside real color combinations from our collection.

#331FBC · RGB 51, 31, 188

Download PNG swatch SVG

Color values

HEX#331FBC
RGB51, 31, 188
HSL248°, 72%, 43%
HSV248°, 84%, 74%
CMYK73%, 84%, 0%, 26%
XYZ10.93, 5.31, 48.03
Yxy5.31, 0.1701, 0.0827
CIE-Lab27.61, 55.17, -77.05
Hunter Lab23.05, 46.26, -112.81

RGB & CMYK percentages

Red 20% · Green 12% · Blue 74%

Cyan 73% · Magenta 84% · Yellow 0% · Key 26%

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

Previews

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

CSS code for #331FBC

.text { color: #331FBC; }
.background { background-color: #331FBC; }
.border { border: 3px solid #331FBC; }
.text-rgb { color: rgb(51, 31, 188); }
.text-hsl { color: hsl(248, 72%, 43%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #331FBC; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(51, 31, 188, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #331FBC; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(51, 31, 188, 0.8); }

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

Shades of #331FBC

#2F1CAB#2A199A#251688#201376#1D1169#180E58#130B46#0E0935#0A0623#050312

Tints of #331FBC

#3A22D3#4C35DE#5F4BE2#7361E5#8A7BEA#9E91ED#B1A7F1#C5BDF4#DCD8F9#EFEDFC

Tones of #331FBC

#3C2AB2#4536A6#4D419B#554C90#5D5785#666379

Color harmonies

Complementary — #A8BD1F:

Analogous:

Triadic:

Contrast & accessibility

Against white text10.18:1 AAA
Against black text2.06:1 Fails

Best text color on #331FBC: #FFFFFF.

Semi-transparent (opacity) text on #331FBC

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

How #331FBC looks with color blindness

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

Protanopia · #2A2A96Deuteranopia · #2C2D8DTritanopia · #327871

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

Electric Ruby Summit
#361BB6 · #CB3D1E · #3EE35B · #CAC6F0
Radiant Ruby Tempest
#3D25BC · #6552DD · #CADE5A · #D9E6A4
Wild Orchard
#178328 · #361FB0 · #D64126 · #CDF0D0
Lucky Mirage
#1DB92B · #2F1FC9 · #D03120 · #B9ECC1
Crystal Ruby Opal
#C02A22 · #46DE4E · #2C24C7 · #EFCEC8
Silent Monsoon
#20C0E8 · #194ED1 · #3A18B2 · #AD2FDA

Similar colors

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

#361BB6#3D25BC#361FB0#2F1FC9#2C24C7#3A18B2#301AC9#261CC1#2D13C1#362CB5#2E2AC5#2919B2

Browse neighbouring colors

← #331FBB  ·  #331FBD →

Frequently asked questions

What color is #331FBC?

#331FBC is Blue, a blue color (RGB 51, 31, 188). Its closest standard named color is DarkSlateBlue.

What is the RGB and HSL of #331FBC?

#331FBC is RGB 51, 31, 188 — HSL 248°, 72%, 43% — CMYK 73%, 84%, 0%, 26%.

What colors go with #331FBC?

Its complement is #A8BD1F; analogous partners are #1F59BD and #831FBD. It also appears in 6+ palettes in our collection.

Can I use #331FBC for text?

White text on #331FBC has a contrast ratio of 10.18:1 (passes WCAG AA); black text gives 2.06:1.