Skip to content
Vectorlight.net

#c31f2b

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

HEX
#c31f2b
RGB
195, 31, 43
HSL
355.61°, 72.57%, 44.31%
OKLCH
0.53 0.2 24.4
Names
—
Lists

Codes

FormatValue
HEX#c31f2b
RGBrgb(195 31 43)
HSLhsl(355.61 72.57% 44.31%)
OKLCHoklch(0.53 0.2 24.4)
CMYKcmyk(0% 84.1% 77.95% 23.53%)
Android#ffc31f2b

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #c31f2b;
background-color: #c31f2b;
bg-[#c31f2b]