Skip to content
Vectorlight.net

#313f0c

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

HEX
#313f0c
RGB
49, 63, 12
HSL
76.47°, 68%, 14.71%
OKLCH
0.34 0.07 123.79
Names
—
Lists

Codes

FormatValue
HEX#313f0c
RGBrgb(49 63 12)
HSLhsl(76.47 68% 14.71%)
OKLCHoklch(0.34 0.07 123.79)
CMYKcmyk(22.22% 0% 80.95% 75.29%)
Android#ff313f0c

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #313f0c;
background-color: #313f0c;
bg-[#313f0c]