Skip to content
Vectorlight.net

#5151b4

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

HEX
#5151b4
RGB
81, 81, 180
HSL
240°, 39.76%, 51.18%
OKLCH
0.49 0.15 279.13
Names
—
Lists

Codes

FormatValue
HEX#5151b4
RGBrgb(81 81 180)
HSLhsl(240 39.76% 51.18%)
OKLCHoklch(0.49 0.15 279.13)
CMYKcmyk(55% 55% 0% 29.41%)
Android#ff5151b4

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #5151b4;
background-color: #5151b4;
bg-[#5151b4]