#31303B Color Information

Hex color code: #31303B

#31303B is a dark blue color. In RGB it is (49, 48, 59), and in HSL it is (245°, 10%, 21%). It is frequently seen in web interfaces.

Try:
Color NameDark Slate Gray
HEX
#31303B
RGB
49, 48, 59
HSL
245°, 10%, 21%
CMYK
17%, 19%, 0%, 77%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #31303B; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

49, 48, 59

Red: 49 / Green: 48 / Blue: 59

HSL

245°, 10%, 21%

Hue: 245° / Saturation: 10% / Lightness: 21%

CMYK

17%, 19%, 0%, 77%

Cyan: 17% / Magenta: 19% / Yellow: 0% / Key: 77%

What color is #31303B?

#31303B is a desaturated neutral associated with balance and subtlety.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #31303B to RGB:

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

HEX to HSL

Convert #31303B to HSL:

hsl(245, 10%, 21%)RGB to HSL Converter →

HEX to CMYK

Convert #31303B to CMYK:

cmyk(17%, 19%, 0%, 77%)Color Converter →

Color Meaning and Usage

#31303B is a dark blue color with RGB values of 49, 48, 59 and HSL of 245°, 10%, 21%. This desaturated neutral evokes balance and subtlety, making it suitable for a solid option for clean and minimal interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #31303B is #3A3B30, creating high-contrast pairings. For softer combinations, try analogous colors like #30353B.

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

Contrast with #31303B

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #31303B?

#31303B is a dark blue color - a desaturated neutral that evokes balance and subtlety.

What is the RGB value of #31303B?

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

How to use #31303B in CSS?

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

What colors go well with #31303B?

#3A3B30 (complementary), #30353B (analogous), and #0E0E11 (lighter shade) work well with #31303B.