Maroon Colors  ·  Color Library

Palettes / Colors / #331DFA

#331DFA — Vivid Blue

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

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

#331DFA · RGB 51, 29, 250

Download PNG swatch SVG

Color values

HEX#331DFA
RGB51, 29, 250
HSL246°, 96%, 55%
HSV246°, 88%, 98%
CMYK80%, 88%, 0%, 2%
XYZ19.06, 8.48, 91.08
Yxy8.48, 0.1607, 0.0715
CIE-Lab34.97, 72.95, -100.56
Hunter Lab29.13, 68.45, -172.98

RGB & CMYK percentages

Red 20% · Green 11% · Blue 98%

Cyan 80% · Magenta 88% · Yellow 0% · Key 2%

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

Previews

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

CSS code for #331DFA

.text { color: #331DFA; }
.background { background-color: #331DFA; }
.border { border: 3px solid #331DFA; }
.text-rgb { color: rgb(51, 29, 250); }
.text-hsl { color: hsl(246, 96%, 55%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #331DFA; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(51, 29, 250, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #331DFA; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(51, 29, 250, 0.8); }

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

Shades of #331DFA

#1E05FA#1B05E1#1804C8#1504AF#120396#0E0278#0B025F#080146#05012D#020014

Tints of #331DFA

#4632FB#5846FB#6A5AFC#7C6EFC#9387FD#A59BFD#B7AFFD#C9C3FE#DBD7FE#EDEBFF

Tones of #331DFA

#412EEA#4D3DDB#5A4DCB#675DBB#736DAB#7F7C9C

Color harmonies

Complementary — #E4FA1E:

Analogous:

Triadic:

Contrast & accessibility

Against white text7.79:1 AAA
Against black text2.70:1 Fails

Best text color on #331DFA: #FFFFFF.

Semi-transparent (opacity) text on #331DFA

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

How #331DFA looks with color blindness

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

Protanopia · #2929C5Deuteranopia · #2B2CB8Tritanopia · #329A91

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 · #2563EBTailwind violet 600 · #7C3AED

Palettes with a similar color

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

Crimson Monsoon
#1A0E0A · #3514FC · #5281F9 · #46FBDF
Frozen Ruby Solace
#0D3820 · #FCF211 · #2B28F8 · #FB3D25
Cosmic Ruby Breeze
#330D15 · #DBF720 · #241AFC · #FAE119
Hidden Ruby Cinder
#153611 · #4116F9 · #14D8F9 · #F76329
Cosmic Canyon
#2D0916 · #2312FE · #5749FB · #53FC7D
Electric Mirage
#261F0B · #262DFE · #FA39AE · #6B21FB

Similar colors

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

#3514FC#2B28F8#241AFC#4116F9#2312FE#262DFE#411CEA#2F26E7#4813F9#402DEE#3E25E6#3636FD

Browse neighbouring colors

← #331DF9  ·  #331DFB →

Frequently asked questions

What color is #331DFA?

#331DFA is Vivid Blue, a blue color (RGB 51, 29, 250). Its closest standard named color is Blue.

What is the RGB and HSL of #331DFA?

#331DFA is RGB 51, 29, 250 — HSL 246°, 96%, 55% — CMYK 80%, 88%, 0%, 2%.

What colors go with #331DFA?

Its complement is #E4FA1E; analogous partners are #1E76FA and #A21EFA. It also appears in 6+ palettes in our collection.

Can I use #331DFA for text?

White text on #331DFA has a contrast ratio of 7.79:1 (passes WCAG AA); black text gives 2.70:1.