Skip to content
Vectorlight.net

#2b0fac

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

HEX
#2b0fac
RGB
43, 15, 172
HSL
250.7°, 83.96%, 36.67%
OKLCH
0.36 0.22 274.65
Names
—
Lists

Codes

FormatValue
HEX#2b0fac
RGBrgb(43 15 172)
HSLhsl(250.7 83.96% 36.67%)
OKLCHoklch(0.36 0.22 274.65)
CMYKcmyk(75% 91.28% 0% 32.55%)
Android#ff2b0fac

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #2b0fac;
background-color: #2b0fac;
bg-[#2b0fac]