#31277C Color Information

Hex color code: #31277C

#31277C is a tranquil blue color. In RGB it is (49, 39, 124), and in HSL it is (247°, 52%, 32%). It is popular in mobile app design.

Try:
Color NameDark Slate Blue
HEX
#31277C
RGB
49, 39, 124
HSL
247°, 52%, 32%
CMYK
60%, 69%, 0%, 51%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #31277C; 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 #31277C; background-color: #31277C15; }

Alert / Toast

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

Link / Accent

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

a { color: #31277C; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #31277C in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

49, 39, 124

Red: 49 / Green: 39 / Blue: 124

HSL

247°, 52%, 32%

Hue: 247° / Saturation: 52% / Lightness: 32%

CMYK

60%, 69%, 0%, 51%

Cyan: 60% / Magenta: 69% / Yellow: 0% / Key: 51%

What color is #31277C?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #31277C to RGB:

rgb(49, 39, 124)HEX to RGB Converter →

HEX to HSL

Convert #31277C to HSL:

hsl(247, 52%, 32%)RGB to HSL Converter →

HEX to CMYK

Convert #31277C to CMYK:

cmyk(60%, 69%, 0%, 51%)Color Converter →

Color Meaning and Usage

A peaceful blue tone, #31277C has RGB (49, 39, 124) and HSL (247°, 52%, 32%). Known for evoking creativity and luxury, this blue-purple hue is frequently chosen for fintech and productivity apps. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #31277C is #727C27, creating high-contrast pairings. For softer combinations, try analogous colors like #27487C.

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

Contrast with #31277C

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #31277C?

#31277C is a peaceful blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #31277C?

#31277C in RGB is (49, 39, 124) - 49 red, 39 green, and 124 blue.

How to use #31277C in CSS?

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

What colors go well with #31277C?

#727C27 (complementary), #27487C (analogous), and #1A1542 (lighter shade) work well with #31277C.