Skip to content
Vectorlight.net

#310fcc

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

HEX
#310fcc
RGB
49, 15, 204
HSL
250.79°, 86.3%, 42.94%
OKLCH
0.41 0.25 273.55
Names
—
Lists

Codes

FormatValue
HEX#310fcc
RGBrgb(49 15 204)
HSLhsl(250.79 86.3% 42.94%)
OKLCHoklch(0.41 0.25 273.55)
CMYKcmyk(75.98% 92.65% 0% 20%)
Android#ff310fcc

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
10.14: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="#310fcc"
Gradient stop
<stop stop-color="#310fcc"/>
CSS variable + fill
:root { --c: #310fcc; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #310fcc;
background-color: #310fcc;
bg-[#310fcc]