Skip to content
Vectorlight.net

#3040ba

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

HEX
#3040ba
RGB
48, 64, 186
HSL
233.04°, 58.97%, 45.88%
OKLCH
0.44 0.19 270.44
Names
—
Lists

Codes

FormatValue
HEX#3040ba
RGBrgb(48 64 186)
HSLhsl(233.04 58.97% 45.88%)
OKLCHoklch(0.44 0.19 270.44)
CMYKcmyk(74.19% 65.59% 0% 27.06%)
Android#ff3040ba

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #3040ba;
background-color: #3040ba;
bg-[#3040ba]