Skip to content
Vectorlight.net

#342bac

Codes, contrast, shades, harmonies and SVG snippets for this color.

HEX
#342bac
RGB
52, 43, 172
HSL
244.19°, 60%, 42.16%
OKLCH
0.4 0.19 275.98
Names
—
Lists

Codes

FormatValue
HEX#342bac
RGBrgb(52 43 172)
HSLhsl(244.19 60% 42.16%)
OKLCHoklch(0.4 0.19 275.98)
CMYKcmyk(69.77% 75% 0% 32.55%)
Android#ff342bac

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
10.06:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
2.08:1
Fail AA normal text
Fail AA large text
On black #000000 · Best text #ffffff

Open in contrast checker

Shades & tints

OKLCH lightness, mixed toward white then black.

Open in shades & tints

Harmonies

Complementary

Analogous

Triadic

Open in palette generator

Color-blindness

Normal
Protanopia
Deuteranopia
Tritanopia

Open simulator

SVG snippets

fill
fill="#342bac"
Gradient stop
<stop stop-color="#342bac"/>
CSS variable + fill
:root { --c: #342bac; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #342bac;
background-color: #342bac;
bg-[#342bac]