Skip to content
Vectorlight.net

#313bab

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

HEX
#313bab
RGB
49, 59, 171
HSL
235.08°, 55.45%, 43.14%
OKLCH
0.42 0.18 272.21
Names
—
Lists

Codes

FormatValue
HEX#313bab
RGBrgb(49 59 171)
HSLhsl(235.08 55.45% 43.14%)
OKLCHoklch(0.42 0.18 272.21)
CMYKcmyk(71.35% 65.5% 0% 32.94%)
Android#ff313bab

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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