Skip to content
Vectorlight.net

#240eac

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

HEX
#240eac
RGB
36, 14, 172
HSL
248.35°, 84.95%, 36.47%
OKLCH
0.36 0.22 272.12
Names
—
Lists

Codes

FormatValue
HEX#240eac
RGBrgb(36 14 172)
HSLhsl(248.35 84.95% 36.47%)
OKLCHoklch(0.36 0.22 272.12)
CMYKcmyk(79.07% 91.86% 0% 32.55%)
Android#ff240eac

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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