Skip to content
Vectorlight.net

#31785f

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

HEX
#31785f
RGB
49, 120, 95
HSL
158.87°, 42.01%, 33.14%
OKLCH
0.52 0.08 167.13
Names
—
Lists

Codes

FormatValue
HEX#31785f
RGBrgb(49 120 95)
HSLhsl(158.87 42.01% 33.14%)
OKLCHoklch(0.52 0.08 167.13)
CMYKcmyk(59.17% 0% 20.83% 52.94%)
Android#ff31785f

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #31785f;
background-color: #31785f;
bg-[#31785f]