Skip to content
Vectorlight.net

#31040f

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

HEX
#31040f
RGB
49, 4, 15
HSL
345.33°, 84.91%, 10.39%
OKLCH
0.21 0.07 11.33
Names
—
Lists

Codes

FormatValue
HEX#31040f
RGBrgb(49 4 15)
HSLhsl(345.33 84.91% 10.39%)
OKLCHoklch(0.21 0.07 11.33)
CMYKcmyk(0% 91.84% 69.39% 80.78%)
Android#ff31040f

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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