Skip to content
Vectorlight.net

#240f79

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

HEX
#240f79
RGB
36, 15, 121
HSL
251.89°, 77.94%, 26.67%
OKLCH
0.29 0.16 278.92
Names
—
Lists

Codes

FormatValue
HEX#240f79
RGBrgb(36 15 121)
HSLhsl(251.89 77.94% 26.67%)
OKLCHoklch(0.29 0.16 278.92)
CMYKcmyk(70.25% 87.6% 0% 52.55%)
Android#ff240f79

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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