Skip to content
Vectorlight.net

#31396d

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

HEX
#31396d
RGB
49, 57, 109
HSL
232°, 37.97%, 30.98%
OKLCH
0.37 0.09 274.52
Names
—
Lists

Codes

FormatValue
HEX#31396d
RGBrgb(49 57 109)
HSLhsl(232 37.97% 30.98%)
OKLCHoklch(0.37 0.09 274.52)
CMYKcmyk(55.05% 47.71% 0% 57.25%)
Android#ff31396d

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #31396d;
background-color: #31396d;
bg-[#31396d]