#40312B Color Information

Hex color code: #40312B

A rich orange shade, #40312B appears as (64, 49, 43) in RGB and (17°, 20%, 21%) in HSL. It is often used for branding and logos.

Try:
Color NameDark Slate Gray
HEX
#40312B
RGB
64, 49, 43
HSL
17°, 20%, 21%
CMYK
0%, 23%, 33%, 75%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #40312B; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

64, 49, 43

Red: 64 / Green: 49 / Blue: 43

HSL

17°, 20%, 21%

Hue: 17° / Saturation: 20% / Lightness: 21%

CMYK

0%, 23%, 33%, 75%

Cyan: 0% / Magenta: 23% / Yellow: 33% / Key: 75%

What color is #40312B?

#40312B is a red-orange hue associated with warmth and passion.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #40312B to RGB:

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

HEX to HSL

Convert #40312B to HSL:

hsl(17, 20%, 21%)RGB to HSL Converter →

HEX to CMYK

Convert #40312B to CMYK:

cmyk(0%, 23%, 33%, 75%)Color Converter →

Color Meaning and Usage

A intense orange tone, #40312B has RGB (64, 49, 43) and HSL (17°, 20%, 21%). Known for evoking warmth and passion, this red-orange hue is popular in mobile app design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #40312B is #2B3A40, creating high-contrast pairings. For softer combinations, try analogous colors like #402B2F.

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

Contrast with #40312B

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 #40312B?

#40312B is a intense orange color - a red-orange hue that evokes warmth and passion.

What is the RGB value of #40312B?

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

How to use #40312B in CSS?

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

What colors go well with #40312B?

#2B3A40 (complementary), #402B2F (analogous), and #120E0C (lighter shade) work well with #40312B.