Skip to content
Vectorlight.net

#042875

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

HEX
#042875
RGB
4, 40, 117
HSL
220.88°, 93.39%, 23.73%
OKLCH
0.31 0.14 262.42
Names
—
Lists

Codes

FormatValue
HEX#042875
RGBrgb(4 40 117)
HSLhsl(220.88 93.39% 23.73%)
OKLCHoklch(0.31 0.14 262.42)
CMYKcmyk(96.58% 65.81% 0% 54.12%)
Android#ff042875

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #042875;
background-color: #042875;
bg-[#042875]