Skip to content
Vectorlight.net

#2a381a

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

HEX
#2a381a
RGB
42, 56, 26
HSL
88°, 36.59%, 16.08%
OKLCH
0.32 0.05 129.48
Names
—
Lists

Codes

FormatValue
HEX#2a381a
RGBrgb(42 56 26)
HSLhsl(88 36.59% 16.08%)
OKLCHoklch(0.32 0.05 129.48)
CMYKcmyk(25% 0% 53.57% 78.04%)
Android#ff2a381a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #2a381a;
background-color: #2a381a;
bg-[#2a381a]