#31312F Color Information

Hex color code: #31312F

A deep yellow shade, #31312F appears as (49, 49, 47) in RGB and (60°, 2%, 19%) in HSL. It is commonly used in modern UI design.

Try:
Color NameDark Slate Gray
HEX
#31312F
RGB
49, 49, 47
HSL
60°, 2%, 19%
CMYK
0%, 0%, 4%, 81%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #31312F; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

49, 49, 47

Red: 49 / Green: 49 / Blue: 47

HSL

60°, 2%, 19%

Hue: 60° / Saturation: 2% / Lightness: 19%

CMYK

0%, 0%, 4%, 81%

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

What color is #31312F?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #31312F to RGB:

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

HEX to HSL

Convert #31312F to HSL:

hsl(60, 2%, 19%)RGB to HSL Converter →

HEX to CMYK

Convert #31312F to CMYK:

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

Color Meaning and Usage

A dark yellow tone, #31312F has RGB (49, 49, 47) and HSL (60°, 2%, 19%). Known for evoking sophistication and elegance, this very dark shade is a solid option for clean and minimal interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #31312F is #2F2F31, creating high-contrast pairings. For softer combinations, try analogous colors like #31302F.

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

Contrast with #31312F

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #31312F?

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

What is the RGB value of #31312F?

#31312F in RGB is (49, 49, 47) - 49 red, 49 green, and 47 blue.

How to use #31312F in CSS?

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

What colors go well with #31312F?

#2F2F31 (complementary), #31302F (analogous), and #0A0A0A (lighter shade) work well with #31312F.