Skip to content
Vectorlight.net

#340641

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

HEX
#340641
RGB
52, 6, 65
HSL
286.78°, 83.1%, 13.92%
OKLCH
0.25 0.11 317.3
Names
—
Lists

Codes

FormatValue
HEX#340641
RGBrgb(52 6 65)
HSLhsl(286.78 83.1% 13.92%)
OKLCHoklch(0.25 0.11 317.3)
CMYKcmyk(20% 90.77% 0% 74.51%)
Android#ff340641

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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