Maroon Colors  ·  Color Library

Palettes / Colors / #342FBC

#342FBC — Blue

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

#342FBC 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 #B7BC2F; it also sits naturally between #2F71BC and #7A2FBC. In the palettes below you can see it working alongside real color combinations from our collection.

#342FBC · RGB 52, 47, 188

Download PNG swatch SVG

Color values

HEX#342FBC
RGB52, 47, 188
HSL242°, 60%, 46%
HSV242°, 75%, 74%
CMYK72%, 75%, 0%, 26%
XYZ11.51, 6.39, 48.20
Yxy6.39, 0.1741, 0.0967
CIE-Lab30.39, 47.43, -72.46
Hunter Lab25.29, 38.96, -100.42

RGB & CMYK percentages

Red 20% · Green 18% · Blue 74%

Cyan 72% · Magenta 75% · Yellow 0% · Key 26%

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

Previews

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

CSS code for #342FBC

.text { color: #342FBC; }
.background { background-color: #342FBC; }
.border { border: 3px solid #342FBC; }
.text-rgb { color: rgb(52, 47, 188); }
.text-hsl { color: hsl(242, 60%, 46%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #342FBC; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(52, 47, 188, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #342FBC; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(52, 47, 188, 0.8); }

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

Shades of #342FBC

#2F2BAB#2B279B#252287#211E76#1C1A66#181556#131145#0D0C31#090821#040410

Tints of #342FBC

#3C37CD#504BD2#6460D7#7874DC#8C89E1#A09DE7#B3B1EC#C7C6F1#DBDAF6#EFEFFB

Tones of #342FBC

#3D39B1#4643A8#504D9D#595794#636189#6B6B80

Color harmonies

Complementary — #B7BC2F:

Analogous:

Triadic:

Contrast & accessibility

Against white text9.22:1 AAA
Against black text2.28:1 Fails

Best text color on #342FBC: #FFFFFF.

Semi-transparent (opacity) text on #342FBC

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

How #342FBC looks with color blindness

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

Protanopia · #32329ADeuteranopia · #323392Tritanopia · #347F79

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

Gentle Saffron
#A1A029 · #BBD351 · #3031BE · #BAC1E8
Wild Ruby Summit
#5C9FCF · #6E87D3 · #3A2FC0 · #B090DE
Vintage Ruby Petal
#362CB5 · #D55E54 · #4ED458 · #D8D4EF
Silent Lagoon
#2F36B4 · #857EDD · #D9D36D · #E2DAAB
Scarlet Cinder
#908EE6 · #4F4BD8 · #2E2AC5 · #121155
Honey Canyon
#33B039 · #3A34B3 · #D26B65 · #B1DDB6

Similar colors

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

#3031BE#3A2FC0#362CB5#2F36B4#2E2AC5#3A34B3#2A2CB6#3837B3#3D25BC#4030B5#303AC6#2828B5

Browse neighbouring colors

← #342FBB  ·  #342FBD →

Frequently asked questions

What color is #342FBC?

#342FBC is Blue, a blue color (RGB 52, 47, 188). Its closest standard named color is DarkSlateBlue.

What is the RGB and HSL of #342FBC?

#342FBC is RGB 52, 47, 188 — HSL 242°, 60%, 46% — CMYK 72%, 75%, 0%, 26%.

What colors go with #342FBC?

Its complement is #B7BC2F; analogous partners are #2F71BC and #7A2FBC. It also appears in 6+ palettes in our collection.

Can I use #342FBC for text?

White text on #342FBC has a contrast ratio of 9.22:1 (passes WCAG AA); black text gives 2.28:1.