#31366D Color Information

Hex color code: #31366D

The hex color #31366D is a subtle blue with RGB values of (49, 54, 109) and HSL of (235°, 38%, 31%). It is popular in mobile app design.

Try:
Color NameDark Slate Blue
HEX
#31366D
RGB
49, 54, 109
HSL
235°, 38%, 31%
CMYK
55%, 50%, 0%, 57%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #31366D; 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 #31366D; background-color: #31366D15; }

Alert / Toast

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

Link / Accent

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

a { color: #31366D; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #31366D in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

49, 54, 109

Red: 49 / Green: 54 / Blue: 109

HSL

235°, 38%, 31%

Hue: 235° / Saturation: 38% / Lightness: 31%

CMYK

55%, 50%, 0%, 57%

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

What color is #31366D?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #31366D to RGB:

rgb(49, 54, 109)HEX to RGB Converter →

HEX to HSL

Convert #31366D to HSL:

hsl(235, 38%, 31%)RGB to HSL Converter →

HEX to CMYK

Convert #31366D to CMYK:

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

Color Meaning and Usage

#31366D is a soft blue color with RGB values of 49, 54, 109 and HSL of 235°, 38%, 31%. This blue-purple hue evokes creativity and luxury, making it suitable for popular for illustrations and friendly visual themes. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #31366D is #6D6831, creating high-contrast pairings. For softer combinations, try analogous colors like #31546D.

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

Contrast with #31366D

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #31366D?

#31366D is a soft blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #31366D?

#31366D in RGB is (49, 54, 109) - 49 red, 54 green, and 109 blue.

How to use #31366D in CSS?

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

What colors go well with #31366D?

#6D6831 (complementary), #31546D (analogous), and #191C38 (lighter shade) work well with #31366D.