Skip to content
Vectorlight.net

#1f021a

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

HEX
#1f021a
RGB
31, 2, 26
HSL
310.34°, 87.88%, 6.47%
OKLCH
0.17 0.07 335.35
Names
—
Lists

Codes

FormatValue
HEX#1f021a
RGBrgb(31 2 26)
HSLhsl(310.34 87.88% 6.47%)
OKLCHoklch(0.17 0.07 335.35)
CMYKcmyk(0% 93.55% 16.13% 87.84%)
Android#ff1f021a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #1f021a;
background-color: #1f021a;
bg-[#1f021a]