Maroon Colors  ·  Color Library

Palettes / Colors / #331FEB

#331FEB — Vivid Blue

#331FEB is a blue color we call Vivid Blue, closest to the named color Blue (#0000FF). It belongs to the blue family.

Color name

Closest CSS keyword: blue (#0000FF) — not an exact match. CSS blue gives you #0000FF, a different color; use #331FEB when you need this exact shade.

Sources: common names follow widely used color-name references; CSS keywords and their hex values follow the CSS Color specification.

#331FEB is a cool blue color associated with trust, calm and professionalism. It is saturated enough to be the accent — buttons, highlights and calls to action — while neutrals do the quiet work around it.

Its strongest partner is its complement #D7EB1E; it also sits naturally between #1E70EB and #991EEB. In the palettes below you can see it working alongside real color combinations from our collection.

#331FEB · RGB 51, 31, 235

Download PNG swatch SVG

Color values

HEX#331FEB
RGB51, 31, 235
HSL246°, 84%, 52%
HSV246°, 87%, 92%
CMYK78%, 87%, 0%, 8%
XYZ16.85, 7.68, 79.19
Yxy7.68, 0.1625, 0.0741
CIE-Lab33.31, 68.34, -94.84
Hunter Lab27.72, 62.48, -157.34

RGB & CMYK percentages

Red 20% · Green 12% · Blue 92%

Cyan 78% · Magenta 87% · Yellow 0% · Key 8%

CMYK values are unprofiled approximations for screen reference — not a print-proofing guarantee.

Previews

Sample text in #331FEB on black
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sample text in #331FEB on white
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

CSS code for #331FEB

.text { color: #331FEB; }
.background { background-color: #331FEB; }
.border { border: 3px solid #331FEB; }
.text-rgb { color: rgb(51, 31, 235); }
.text-hsl { color: hsl(246, 84%, 52%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #331FEB; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(51, 31, 235, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #331FEB; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(51, 31, 235, 0.8); }

HTML: <p style="color:#331FEB">Text here</p> · <div style="background-color:#331FEB">Div content here</div>

Shades of #331FEB

#2713DD#2311C5#2010B2#1C0D9B#170B83#13096C#0F0754#0C0642#08042A#030213

Tints of #331FEB

#4331ED#5948EF#6A5BF1#7F72F3#9085F4#A198F6#B7AFF8#C8C2FA#DDD9FC#EEECFD

Tones of #331FEB

#3E2CDD#4A3BCE#564ABF#6159B1#6D67A2#797693

Color harmonies

Complementary — #D7EB1E:

Analogous:

Triadic:

Contrast & accessibility

Against white text8.28:1 AAA
Against black text2.54:1 Fails

Best text color on #331FEB: #FFFFFF.

Semi-transparent (opacity) text on #331FEB

Text set with opacity blends into the background, so its real contrast is lower than the solid ratios above. Choose a text color and an opacity to see the blended color and its true ratio:

100%
Sample heading text
Smaller body text shows the effect best.

Blended color: · Contrast against #331FEB: ·

How #331FEB looks with color blindness

Simulated with standard Machado color-vision-deficiency matrices — useful when this color carries meaning in charts, maps or interfaces:

Protanopia · #2A2ABADeuteranopia · #2C2DAETritanopia · #32938A

Closest design-system colors

The nearest matches in the Tailwind CSS, Material Design and Bootstrap palettes — handy when you need a framework class instead of a raw hex:

Tailwind indigo 600 · #4F46E5Tailwind blue 600 · #2563EBMaterial Indigo 500 · #3F51B5

Palettes with a similar color

These palettes use a close neighbour of #331FEB rather than the exact color:

Velvet Mirage
#58D7EA · #175CC0 · #2F26E7 · #A85CF1
Vintage Orchard
#B3CB17 · #E8EF72 · #3E25E6 · #B2A0EE
Crimson Meadow
#9BB911 · #D4EC2E · #411CEA · #C1BDF5
Frozen Ruby Solace
#0D3820 · #FCF211 · #2B28F8 · #FB3D25
Palette 2f2fe4
#2F2FE4 · #162E93 · #1A1953 · #080616
Amber Ruby Voyage
#13A1E9 · #252CE8 · #9625E2 · #C51B9F

Similar colors

The closest colors that actually appear in our palette collection — click any to open its page:

#2F26E7#3E25E6#411CEA#2B28F8#2F2FE4#252CE8#402DEE#4022DC#3514FC#311FD6#3534EA#2726DB

Browse neighbouring colors

← #331FEA  ·  #331FEC →

Frequently asked questions

What color is #331FEB?

#331FEB is Vivid Blue, a blue color (RGB 51, 31, 235). Its closest standard named color is Blue.

What is the RGB and HSL of #331FEB?

#331FEB is RGB 51, 31, 235 — HSL 246°, 84%, 52% — CMYK 78%, 87%, 0%, 8%.

What colors go with #331FEB?

Its complement is #D7EB1E; analogous partners are #1E70EB and #991EEB. It also appears in 6+ palettes in our collection.

Can I use #331FEB for text?

White text on #331FEB has a contrast ratio of 8.28:1 (passes WCAG AA); black text gives 2.54:1.