Skip to content
Vectorlight.net

#0842aa

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

HEX
#0842aa
RGB
8, 66, 170
HSL
218.52°, 91.01%, 34.9%
OKLCH
0.42 0.18 261.52
Names
—
Lists

Codes

FormatValue
HEX#0842aa
RGBrgb(8 66 170)
HSLhsl(218.52 91.01% 34.9%)
OKLCHoklch(0.42 0.18 261.52)
CMYKcmyk(95.29% 61.18% 0% 33.33%)
Android#ff0842aa

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #0842aa;
background-color: #0842aa;
bg-[#0842aa]