Skip to content
Vectorlight.net

#311fde

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

HEX
#311fde
RGB
49, 31, 222
HSL
245.65°, 75.49%, 49.61%
OKLCH
0.44 0.26 271.76
Names
—
Lists

Codes

FormatValue
HEX#311fde
RGBrgb(49 31 222)
HSLhsl(245.65 75.49% 49.61%)
OKLCHoklch(0.44 0.26 271.76)
CMYKcmyk(77.93% 86.04% 0% 12.94%)
Android#ff311fde

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #311fde;
background-color: #311fde;
bg-[#311fde]