Skip to content
Vectorlight.net

#340940

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

HEX
#340940
RGB
52, 9, 64
HSL
286.91°, 75.34%, 14.31%
OKLCH
0.25 0.1 317.65
Names
—
Lists

Codes

FormatValue
HEX#340940
RGBrgb(52 9 64)
HSLhsl(286.91 75.34% 14.31%)
OKLCHoklch(0.25 0.1 317.65)
CMYKcmyk(18.75% 85.94% 0% 74.9%)
Android#ff340940

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
16.67:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.25: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="#340940"
Gradient stop
<stop stop-color="#340940"/>
CSS variable + fill
:root { --c: #340940; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #340940;
background-color: #340940;
bg-[#340940]