#312697 Color Information

Hex color code: #312697

The hex color #312697 is a calming blue with RGB values of (49, 38, 151) and HSL of (246°, 60%, 37%). It is frequently seen in web interfaces.

Try:
Color NameDark Slate Blue
HEX
#312697
RGB
49, 38, 151
HSL
246°, 60%, 37%
CMYK
68%, 75%, 0%, 41%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #312697; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

49, 38, 151

Red: 49 / Green: 38 / Blue: 151

HSL

246°, 60%, 37%

Hue: 246° / Saturation: 60% / Lightness: 37%

CMYK

68%, 75%, 0%, 41%

Cyan: 68% / Magenta: 75% / Yellow: 0% / Key: 41%

What color is #312697?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #312697 to RGB:

rgb(49, 38, 151)HEX to RGB Converter →

HEX to HSL

Convert #312697 to HSL:

hsl(246, 60%, 37%)RGB to HSL Converter →

HEX to CMYK

Convert #312697 to CMYK:

cmyk(68%, 75%, 0%, 41%)Color Converter →

Color Meaning and Usage

#312697 is a serene blue color with RGB values of 49, 38, 151 and HSL of 246°, 60%, 37%. This blue-purple hue evokes creativity and luxury, making it suitable for popular in mobile app design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #312697 is #8C9726, creating high-contrast pairings. For softer combinations, try analogous colors like #265397.

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

Contrast with #312697

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #312697?

#312697 is a serene blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #312697?

#312697 in RGB is (49, 38, 151) - 49 red, 38 green, and 151 blue.

How to use #312697 in CSS?

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

What colors go well with #312697?

#8C9726 (complementary), #265397 (analogous), and #1D165A (lighter shade) work well with #312697.