#331FEA Color Information

Hex color code: #331FEA

The hex color #331FEA is a dynamic blue with RGB values of (51, 31, 234) and HSL of (246°, 83%, 52%). It is typically applied in digital products.

Try:
Color NameBlue
HEX
#331FEA
RGB
51, 31, 234
HSL
246°, 83%, 52%
CMYK
78%, 87%, 0%, 8%

Shades

CSS Usage
color: #331FEA;
background-color: #331FEA;
border-color: #331FEA;
box-shadow: 0 0 10px #331FEA;
border: 2px solid #331FEA;
Tailwind Usage
bg-[#331FEA]
text-[#331FEA]
border-[#331FEA]
shadow-[0_0_10px_331FEA]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #331FEA, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #331FEA; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #331FEA; color: #FFFFFF; }

Text Highlight

The quick brown fox jumps over the lazy dog. highlighted text example shows how the color looks as a text highlight.

Card

Card Title

This card uses your color as a border accent.

.card-accent { border: 2px solid #331FEA; background-color: #331FEA15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #331FEA20; border-left: 4px solid #331FEA; }

Link / Accent

This is a paragraph with a link using your color. The color can be applied to interactive elements.

a { color: #331FEA; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #331FEA in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

51, 31, 234

Red: 51 / Green: 31 / Blue: 234

HSL

246°, 83%, 52%

Hue: 246° / Saturation: 83% / Lightness: 52%

CMYK

78%, 87%, 0%, 8%

Cyan: 78% / Magenta: 87% / Yellow: 0% / Key: 8%

What color is #331FEA?

#331FEA is a highly saturated hue associated with energy and excitement.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #331FEA to RGB:

rgb(51, 31, 234)HEX to RGB Converter →

HEX to HSL

Convert #331FEA to HSL:

hsl(246, 83%, 52%)RGB to HSL Converter →

HEX to CMYK

Convert #331FEA to CMYK:

cmyk(78%, 87%, 0%, 8%)Color Converter →

Color Meaning and Usage

#331FEA is a bold blue color with RGB values of 51, 31, 234 and HSL of 246°, 83%, 52%. This highly saturated hue evokes energy and excitement, making it suitable for frequently seen in web interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #331FEA is #D6EA1F, creating high-contrast pairings. For softer combinations, try analogous colors like #1F70EA.

Use #331FEA in CSS: color: #331FEA or background-color: #331FEA. Create palettes with Color Palette Generator or check contrast with Contrast Checker.

Contrast with #331FEA

Sample text on this color - The quick brown fox jumps over the lazy dog.

Contrast Ratio: 2.52:1
WCAG AA: Fail
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #331FEA?

#331FEA is a bold blue color - a highly saturated hue that evokes energy and excitement.

What is the RGB value of #331FEA?

#331FEA in RGB is (51, 31, 234) - 51 red, 31 green, and 234 blue.

How to use #331FEA in CSS?

Use #331FEA directly in your CSS properties like color or background-color.

What colors go well with #331FEA?

#D6EA1F (complementary), #1F70EA (analogous), and #2010AD (lighter shade) work well with #331FEA.