Skip to content
Vectorlight.net

#312fdb

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

HEX
#312fdb
RGB
49, 47, 219
HSL
240.7°, 70.49%, 52.16%
OKLCH
0.45 0.25 271.21
Names
—
Lists

Codes

FormatValue
HEX#312fdb
RGBrgb(49 47 219)
HSLhsl(240.7 70.49% 52.16%)
OKLCHoklch(0.45 0.25 271.21)
CMYKcmyk(77.63% 78.54% 0% 14.12%)
Android#ff312fdb

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #312fdb;
background-color: #312fdb;
bg-[#312fdb]