#311372 Color Information

Hex color code: #311372

A bold purple shade, #311372 appears as (49, 19, 114) in RGB and (259°, 71%, 26%) in HSL. It is frequently seen in web interfaces.

Try:
Color NameIndigo
HEX
#311372
RGB
49, 19, 114
HSL
259°, 71%, 26%
CMYK
57%, 83%, 0%, 55%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #311372; 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 #311372; background-color: #31137215; }

Alert / Toast

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

Link / Accent

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

a { color: #311372; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #311372 in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

49, 19, 114

Red: 49 / Green: 19 / Blue: 114

HSL

259°, 71%, 26%

Hue: 259° / Saturation: 71% / Lightness: 26%

CMYK

57%, 83%, 0%, 55%

Cyan: 57% / Magenta: 83% / Yellow: 0% / Key: 55%

What color is #311372?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #311372 to RGB:

rgb(49, 19, 114)HEX to RGB Converter →

HEX to HSL

Convert #311372 to HSL:

hsl(259, 71%, 26%)RGB to HSL Converter →

HEX to CMYK

Convert #311372 to CMYK:

cmyk(57%, 83%, 0%, 55%)Color Converter →

Color Meaning and Usage

A striking purple tone, #311372 has RGB (49, 19, 114) and HSL (259°, 71%, 26%). Known for evoking creativity and luxury, this blue-purple hue is commonly used in modern UI design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #311372 is #547113, creating high-contrast pairings. For softer combinations, try analogous colors like #132471.

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

Contrast with #311372

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #311372?

#311372 is a striking purple color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #311372?

#311372 in RGB is (49, 19, 114) - 49 red, 19 green, and 114 blue.

How to use #311372 in CSS?

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

What colors go well with #311372?

#547113 (complementary), #132471 (analogous), and #150830 (lighter shade) work well with #311372.