Skip to content
Vectorlight.net

#1f4bed

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

HEX
#1f4bed
RGB
31, 75, 237
HSL
227.18°, 85.12%, 52.55%
OKLCH
0.5 0.25 265.38
Names
—
Lists

Codes

FormatValue
HEX#1f4bed
RGBrgb(31 75 237)
HSLhsl(227.18 85.12% 52.55%)
OKLCHoklch(0.5 0.25 265.38)
CMYKcmyk(86.92% 68.35% 0% 7.06%)
Android#ff1f4bed

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #1f4bed;
background-color: #1f4bed;
bg-[#1f4bed]