Skip to content
Vectorlight.net

#240eaa

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

HEX
#240eaa
RGB
36, 14, 170
HSL
248.46°, 84.78%, 36.08%
OKLCH
0.36 0.22 272.3
Names
—
Lists

Codes

FormatValue
HEX#240eaa
RGBrgb(36 14 170)
HSLhsl(248.46 84.78% 36.08%)
OKLCHoklch(0.36 0.22 272.3)
CMYKcmyk(78.82% 91.76% 0% 33.33%)
Android#ff240eaa

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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