#31312B Color Information

Hex color code: #31312B

A deep yellow shade, #31312B appears as (49, 49, 43) in RGB and (60°, 7%, 18%) in HSL. It is commonly used in modern UI design.

Try:
Color NameDark Slate Gray
HEX
#31312B
RGB
49, 49, 43
HSL
60°, 7%, 18%
CMYK
0%, 0%, 12%, 81%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #31312B; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

49, 49, 43

Red: 49 / Green: 49 / Blue: 43

HSL

60°, 7%, 18%

Hue: 60° / Saturation: 7% / Lightness: 18%

CMYK

0%, 0%, 12%, 81%

Cyan: 0% / Magenta: 0% / Yellow: 12% / Key: 81%

What color is #31312B?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #31312B to RGB:

rgb(49, 49, 43)HEX to RGB Converter →

HEX to HSL

Convert #31312B to HSL:

hsl(60, 7%, 18%)RGB to HSL Converter →

HEX to CMYK

Convert #31312B to CMYK:

cmyk(0%, 0%, 12%, 81%)Color Converter →

Color Meaning and Usage

A dark yellow tone, #31312B has RGB (49, 49, 43) and HSL (60°, 7%, 18%). Known for evoking sophistication and elegance, this very dark shade is often used for buttons, highlights, and accents. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #31312B is #2B2B31, creating high-contrast pairings. For softer combinations, try analogous colors like #312E2B.

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

Contrast with #31312B

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #31312B?

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

What is the RGB value of #31312B?

#31312B in RGB is (49, 49, 43) - 49 red, 49 green, and 43 blue.

How to use #31312B in CSS?

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

What colors go well with #31312B?

#2B2B31 (complementary), #312E2B (analogous), and #080807 (lighter shade) work well with #31312B.