Skip to content
Vectorlight.net

#240d3f

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

HEX
#240d3f
RGB
36, 13, 63
HSL
267.6°, 65.79%, 14.9%
OKLCH
0.23 0.09 300.34
Names
—
Lists

Codes

FormatValue
HEX#240d3f
RGBrgb(36 13 63)
HSLhsl(267.6 65.79% 14.9%)
OKLCHoklch(0.23 0.09 300.34)
CMYKcmyk(42.86% 79.37% 0% 75.29%)
Android#ff240d3f

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #240d3f;
background-color: #240d3f;
bg-[#240d3f]