#331D95 Color Information

Hex color code: #331D95

#331D95 is a cool blue color. In RGB it is (51, 29, 149), and in HSL it is (251°, 67%, 35%). It is commonly used in modern UI design.

Try:
Color NameDark Slate Blue
HEX
#331D95
RGB
51, 29, 149
HSL
251°, 67%, 35%
CMYK
66%, 81%, 0%, 42%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #331D95; 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 #331D95; background-color: #331D9515; }

Alert / Toast

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

Link / Accent

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

a { color: #331D95; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

51, 29, 149

Red: 51 / Green: 29 / Blue: 149

HSL

251°, 67%, 35%

Hue: 251° / Saturation: 67% / Lightness: 35%

CMYK

66%, 81%, 0%, 42%

Cyan: 66% / Magenta: 81% / Yellow: 0% / Key: 42%

What color is #331D95?

#331D95 is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #331D95 to RGB:

rgb(51, 29, 149)HEX to RGB Converter →

HEX to HSL

Convert #331D95 to HSL:

hsl(251, 67%, 35%)RGB to HSL Converter →

HEX to CMYK

Convert #331D95 to CMYK:

cmyk(66%, 81%, 0%, 42%)Color Converter →

Color Meaning and Usage

#331D95 is a peaceful blue color with RGB values of 51, 29, 149 and HSL of 251°, 67%, 35%. This blue-purple hue evokes creativity and luxury, making it suitable for often used for branding and logos. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #331D95 is #7F951D, creating high-contrast pairings. For softer combinations, try analogous colors like #1D4395.

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

Contrast with #331D95

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #331D95?

#331D95 is a peaceful blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #331D95?

#331D95 in RGB is (51, 29, 149) - 51 red, 29 green, and 149 blue.

How to use #331D95 in CSS?

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

What colors go well with #331D95?

#7F951D (complementary), #1D4395 (analogous), and #1D1155 (lighter shade) work well with #331D95.