Maroon Colors  ·  Color Library

Palettes / Colors / #331FEA

#331FEA — Vivid Blue

#331FEA 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 #331FEA 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.

#331FEA 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 #D6EA1F; it also sits naturally between #1F70EA and #991FEA. In the palettes below you can see it working alongside real color combinations from our collection.

#331FEA · RGB 51, 31, 234

Download PNG swatch SVG

Color values

HEX#331FEA
RGB51, 31, 234
HSL246°, 83%, 52%
HSV246°, 87%, 92%
CMYK78%, 87%, 0%, 8%
XYZ16.71, 7.62, 78.43
Yxy7.62, 0.1626, 0.0742
CIE-Lab33.19, 68.07, -94.48
Hunter Lab27.61, 62.13, -156.38

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 #331FEA on black
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sample text in #331FEA on white
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

CSS code for #331FEA

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

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

Shades of #331FEA

#2814DB#2412C4#2110B1#1C0E9A#180C83#140A6B#0F0854#0C0641#08042A#030213

Tints of #331FEA

#4432EC#5A49EE#6A5CF0#8073F2#9186F4#A298F5#B7B0F8#C8C2F9#DDDAFC#EEECFD

Tones of #331FEA

#3F2EDC#4B3CCD#574BBE#6159B1#6D67A2#797693

Color harmonies

Complementary — #D6EA1F:

Analogous:

Triadic:

Contrast & accessibility

Against white text8.32:1 AAA
Against black text2.52:1 Fails

Best text color on #331FEA: #FFFFFF.

Semi-transparent (opacity) text on #331FEA

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 #331FEA: ·

How #331FEA looks with color blindness

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

Protanopia · #2A2AB9Deuteranopia · #2C2DADTritanopia · #32928A

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 #331FEA rather than the exact color:

Velvet Mirage
#58D7EA · #175CC0 · #2F26E7 · #A85CF1
Vintage Orchard
#B3CB17 · #E8EF72 · #3E25E6 · #B2A0EE
Crimson Meadow
#9BB911 · #D4EC2E · #411CEA · #C1BDF5
Palette 2f2fe4
#2F2FE4 · #162E93 · #1A1953 · #080616
Frozen Ruby Solace
#0D3820 · #FCF211 · #2B28F8 · #FB3D25
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#2F2FE4#2B28F8#252CE8#4022DC#402DEE#311FD6#2726DB#351AD6#3534EA

Browse neighbouring colors

← #331FE9  ·  #331FEB →

Frequently asked questions

What color is #331FEA?

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

What is the RGB and HSL of #331FEA?

#331FEA is RGB 51, 31, 234 — HSL 246°, 83%, 52% — CMYK 78%, 87%, 0%, 8%.

What colors go with #331FEA?

Its complement is #D6EA1F; analogous partners are #1F70EA and #991FEA. It also appears in 6+ palettes in our collection.

Can I use #331FEA for text?

White text on #331FEA has a contrast ratio of 8.32:1 (passes WCAG AA); black text gives 2.52:1.