#311396 Color Information

Hex color code: #311396

#311396 is a vivid blue color. In RGB it is (49, 19, 150), and in HSL it is (254°, 78%, 33%). It is frequently seen in web interfaces.

Try:
Color NameIndigo
HEX
#311396
RGB
49, 19, 150
HSL
254°, 78%, 33%
CMYK
67%, 87%, 0%, 41%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #311396; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

49, 19, 150

Red: 49 / Green: 19 / Blue: 150

HSL

254°, 78%, 33%

Hue: 254° / Saturation: 78% / Lightness: 33%

CMYK

67%, 87%, 0%, 41%

Cyan: 67% / Magenta: 87% / Yellow: 0% / Key: 41%

What color is #311396?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #311396 to RGB:

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

HEX to HSL

Convert #311396 to HSL:

hsl(254, 78%, 33%)RGB to HSL Converter →

HEX to CMYK

Convert #311396 to CMYK:

cmyk(67%, 87%, 0%, 41%)Color Converter →

Color Meaning and Usage

A eye-catching blue tone, #311396 has RGB (49, 19, 150) and HSL (254°, 78%, 33%). Known for evoking creativity and luxury, this blue-purple hue is a solid option for clean and minimal interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #311396 is #779613, creating high-contrast pairings. For softer combinations, try analogous colors like #133696.

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

Contrast with #311396

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #311396?

#311396 is a eye-catching blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #311396?

#311396 in RGB is (49, 19, 150) - 49 red, 19 green, and 150 blue.

How to use #311396 in CSS?

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

What colors go well with #311396?

#779613 (complementary), #133696 (analogous), and #1B0A52 (lighter shade) work well with #311396.