Skip to content
Vectorlight.net

#040f4d

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

HEX
#040f4d
RGB
4, 15, 77
HSL
230.96°, 90.12%, 15.88%
OKLCH
0.22 0.11 266.12
Names
—
Lists

Codes

FormatValue
HEX#040f4d
RGBrgb(4 15 77)
HSLhsl(230.96 90.12% 15.88%)
OKLCHoklch(0.22 0.11 266.12)
CMYKcmyk(94.81% 80.52% 0% 69.8%)
Android#ff040f4d

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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