Skip to content
Vectorlight.net

#040e7a

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

HEX
#040e7a
RGB
4, 14, 122
HSL
234.92°, 93.65%, 24.71%
OKLCH
0.28 0.17 265.39
Names
—
Lists

Codes

FormatValue
HEX#040e7a
RGBrgb(4 14 122)
HSLhsl(234.92 93.65% 24.71%)
OKLCHoklch(0.28 0.17 265.39)
CMYKcmyk(96.72% 88.52% 0% 52.16%)
Android#ff040e7a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #040e7a;
background-color: #040e7a;
bg-[#040e7a]