#31301B Color Information

Hex color code: #31301B

#31301B is a rich yellow color. In RGB it is (49, 48, 27), and in HSL it is (57°, 29%, 15%). It is often used for branding and logos.

Try:
Color NameDark Slate Gray
HEX
#31301B
RGB
49, 48, 27
HSL
57°, 29%, 15%
CMYK
0%, 2%, 45%, 81%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #31301B; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

49, 48, 27

Red: 49 / Green: 48 / Blue: 27

HSL

57°, 29%, 15%

Hue: 57° / Saturation: 29% / Lightness: 15%

CMYK

0%, 2%, 45%, 81%

Cyan: 0% / Magenta: 2% / Yellow: 45% / Key: 81%

What color is #31301B?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #31301B to RGB:

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

HEX to HSL

Convert #31301B to HSL:

hsl(57, 29%, 15%)RGB to HSL Converter →

HEX to CMYK

Convert #31301B to CMYK:

cmyk(0%, 2%, 45%, 81%)Color Converter →

Color Meaning and Usage

#31301B is a rich yellow color with RGB values of 49, 48, 27 and HSL of 57°, 29%, 15%. This very dark shade evokes sophistication and elegance, making it suitable for frequently chosen for fintech and productivity apps. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #31301B is #1B1C31, creating high-contrast pairings. For softer combinations, try analogous colors like #31251B.

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

Contrast with #31301B

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #31301B?

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

What is the RGB value of #31301B?

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

How to use #31301B in CSS?

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

What colors go well with #31301B?

#1B1C31 (complementary), #31251B (analogous), and #000000 (lighter shade) work well with #31301B.