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.
Color values
| HEX | #342FBC |
|---|---|
| RGB | 52, 47, 188 |
| HSL | 242°, 60%, 46% |
| HSV | 242°, 75%, 74% |
| CMYK | 72%, 75%, 0%, 26% |
| XYZ | 11.51, 6.39, 48.20 |
| Yxy | 6.39, 0.1741, 0.0967 |
| CIE-Lab | 30.39, 47.43, -72.46 |
| Hunter Lab | 25.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
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
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
Tints of #342FBC
Tones of #342FBC
Color harmonies
Complementary — #B7BC2F:
Analogous:
Triadic:
Contrast & accessibility
| Against white text | 9.22:1 AAA |
|---|---|
| Against black text | 2.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:
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:
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:
Palettes with a similar color
These palettes use a close neighbour of #342FBC rather than the exact color:
Similar colors
The closest colors that actually appear in our palette collection — click any to open its page:
Browse neighbouring colors
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.