Skip to content
Vectorlight.net

#313790

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

HEX
#313790
RGB
49, 55, 144
HSL
236.21°, 49.22%, 37.84%
OKLCH
0.39 0.14 274.52
Names
—
Lists

Codes

FormatValue
HEX#313790
RGBrgb(49 55 144)
HSLhsl(236.21 49.22% 37.84%)
OKLCHoklch(0.39 0.14 274.52)
CMYKcmyk(65.97% 61.81% 0% 43.53%)
Android#ff313790

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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