#31371B Color Information

Hex color code: #31371B

The hex color #31371B is a intense yellow with RGB values of (49, 55, 27) and HSL of (73°, 34%, 16%). It is widely used in graphic design.

Try:
Color NameDark Slate Gray
HEX
#31371B
RGB
49, 55, 27
HSL
73°, 34%, 16%
CMYK
11%, 0%, 51%, 78%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #31371B; 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 #31371B; background-color: #31371B15; }

Alert / Toast

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

Link / Accent

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

a { color: #31371B; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #31371B in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

49, 55, 27

Red: 49 / Green: 55 / Blue: 27

HSL

73°, 34%, 16%

Hue: 73° / Saturation: 34% / Lightness: 16%

CMYK

11%, 0%, 51%, 78%

Cyan: 11% / Magenta: 0% / Yellow: 51% / Key: 78%

What color is #31371B?

#31371B is a very dark shade associated with sophistication and elegance.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #31371B to RGB:

rgb(49, 55, 27)HEX to RGB Converter →

HEX to HSL

Convert #31371B to HSL:

hsl(73, 34%, 16%)RGB to HSL Converter →

HEX to CMYK

Convert #31371B to CMYK:

cmyk(11%, 0%, 51%, 78%)Color Converter →

Color Meaning and Usage

A deep yellow tone, #31371B has RGB (49, 55, 27) and HSL (73°, 34%, 16%). Known for evoking sophistication and elegance, this very dark shade is frequently chosen for fintech and productivity apps. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #31371B is #211B37, creating high-contrast pairings. For softer combinations, try analogous colors like #372F1B.

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

Contrast with #31371B

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #31371B?

#31371B is a deep yellow color - a very dark shade that evokes sophistication and elegance.

What is the RGB value of #31371B?

#31371B in RGB is (49, 55, 27) - 49 red, 55 green, and 27 blue.

How to use #31371B in CSS?

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

What colors go well with #31371B?

#211B37 (complementary), #372F1B (analogous), and #030302 (lighter shade) work well with #31371B.