Maroon Colors  ·  Color Library

Palettes / Colors / #342BEC

#342BEC — Vivid Blue

#342BEC is a blue color we call Vivid Blue, closest to the named color RoyalBlue (#4169E1). It belongs to the blue family.

Color name

Closest CSS keyword: royalblue (#4169E1) — not an exact match. CSS royalblue gives you #4169E1, a different color; use #342BEC 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.

#342BEC 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 #E3ED2C; it also sits naturally between #2C83ED and #962CED. In the palettes below you can see it working alongside real color combinations from our collection.

#342BEC · RGB 52, 43, 236

Download PNG swatch SVG

Color values

HEX#342BEC
RGB52, 43, 236
HSL243°, 84%, 55%
HSV243°, 82%, 93%
CMYK78%, 82%, 0%, 7%
XYZ17.42, 8.51, 80.08
Yxy8.51, 0.1643, 0.0803
CIE-Lab35.03, 64.05, -92.55
Hunter Lab29.18, 57.97, -149.42

RGB & CMYK percentages

Red 20% · Green 17% · Blue 93%

Cyan 78% · Magenta 82% · Yellow 0% · Key 7%

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

Previews

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

CSS code for #342BEC

.text { color: #342BEC; }
.background { background-color: #342BEC; }
.border { border: 3px solid #342BEC; }
.text-rgb { color: rgb(52, 43, 236); }
.text-hsl { color: hsl(243, 84%, 55%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #342BEC; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(52, 43, 236, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #342BEC; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(52, 43, 236, 0.8); }

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

Shades of #342BEC

#1F14EB#1C12D3#1910BC#160EA4#130C8D#0F0A71#0C0859#090642#06042A#020213

Tints of #342BEC

#473FEE#5951F0#6B64F2#7D77F3#948EF5#A5A1F7#B7B4F8#C9C7FA#DBD9FC#EDECFD

Tones of #342BEC

#423ADF#4E47D1#5B55C3#6763B6#7371A8#807E9A

Color harmonies

Complementary — #E3ED2C:

Analogous:

Triadic:

Contrast & accessibility

Against white text7.77:1 AAA
Against black text2.70:1 Fails

Best text color on #342BEC: #FFFFFF.

Semi-transparent (opacity) text on #342BEC

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

How #342BEC looks with color blindness

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

Protanopia · #3030BDDeuteranopia · #3131B2Tritanopia · #349890

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:

Tailwind indigo 600 · #4F46E5Tailwind blue 600 · #2563EBMaterial Indigo 500 · #3F51B5

Palettes with a similar color

These palettes use a close neighbour of #342BEC rather than the exact color:

Velvet Mirage
#58D7EA · #175CC0 · #2F26E7 · #A85CF1
Smoky Monsoon
#152BC9 · #3534EA · #E1C817 · #F4F4C0
Palette 2f2fe4
#2F2FE4 · #162E93 · #1A1953 · #080616
Royal Ruby Voyage
#0E11B0 · #402DEE · #EDEA27 · #EFE692
Vintage Orchard
#B3CB17 · #E8EF72 · #3E25E6 · #B2A0EE
Frozen Ruby Solace
#0D3820 · #FCF211 · #2B28F8 · #FB3D25

Similar colors

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

#2F26E7#3534EA#2F2FE4#402DEE#3E25E6#2B28F8#252CE8#3F39E7#2835E2#362FD9#3D3BF3#411CEA

Browse neighbouring colors

← #342BEB  ·  #342BED →

Frequently asked questions

What color is #342BEC?

#342BEC is Vivid Blue, a blue color (RGB 52, 43, 236). Its closest standard named color is RoyalBlue.

What is the RGB and HSL of #342BEC?

#342BEC is RGB 52, 43, 236 — HSL 243°, 84%, 55% — CMYK 78%, 82%, 0%, 7%.

What colors go with #342BEC?

Its complement is #E3ED2C; analogous partners are #2C83ED and #962CED. It also appears in 6+ palettes in our collection.

Can I use #342BEC for text?

White text on #342BEC has a contrast ratio of 7.77:1 (passes WCAG AA); black text gives 2.70:1.