Skip to content
Vectorlight.net

#315faf

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

HEX
#315faf
RGB
49, 95, 175
HSL
218.1°, 56.25%, 43.92%
OKLCH
0.5 0.14 260.62
Names
—
Lists

Codes

FormatValue
HEX#315faf
RGBrgb(49 95 175)
HSLhsl(218.1 56.25% 43.92%)
OKLCHoklch(0.5 0.14 260.62)
CMYKcmyk(72% 45.71% 0% 31.37%)
Android#ff315faf

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #315faf;
background-color: #315faf;
bg-[#315faf]