Skip to content
Vectorlight.net

#040894

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

HEX
#040894
RGB
4, 8, 148
HSL
238.33°, 94.74%, 29.8%
OKLCH
0.31 0.2 265.01
Names
—
Lists

Codes

FormatValue
HEX#040894
RGBrgb(4 8 148)
HSLhsl(238.33 94.74% 29.8%)
OKLCHoklch(0.31 0.2 265.01)
CMYKcmyk(97.3% 94.59% 0% 41.96%)
Android#ff040894

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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