#402B3B Color Information

Hex color code: #402B3B

#402B3B is a intense magenta color. In RGB it is (64, 43, 59), and in HSL it is (314°, 20%, 21%). It is widely used in graphic design.

Try:
Color NameDark Slate Gray
HEX
#402B3B
RGB
64, 43, 59
HSL
314°, 20%, 21%
CMYK
0%, 33%, 8%, 75%

Shades

CSS Usage
color: #402B3B;
background-color: #402B3B;
border-color: #402B3B;
box-shadow: 0 0 10px #402B3B;
border: 2px solid #402B3B;
Tailwind Usage
bg-[#402B3B]
text-[#402B3B]
border-[#402B3B]
shadow-[0_0_10px_402B3B]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #402B3B, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #402B3B; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #402B3B; 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 #402B3B; background-color: #402B3B15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #402B3B20; border-left: 4px solid #402B3B; }

Link / Accent

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

a { color: #402B3B; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #402B3B in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

64, 43, 59

Red: 64 / Green: 43 / Blue: 59

HSL

314°, 20%, 21%

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

CMYK

0%, 33%, 8%, 75%

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

What color is #402B3B?

#402B3B is a magenta-red hue associated with romance and playfulness.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #402B3B to RGB:

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

HEX to HSL

Convert #402B3B to HSL:

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

HEX to CMYK

Convert #402B3B to CMYK:

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

Color Meaning and Usage

A dramatic magenta tone, #402B3B has RGB (64, 43, 59) and HSL (314°, 20%, 21%). Known for evoking romance and playfulness, this magenta-red hue is frequently chosen for fintech and productivity apps. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #402B3B is #2B4030, creating high-contrast pairings. For softer combinations, try analogous colors like #3B2B40.

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

Contrast with #402B3B

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #402B3B?

#402B3B is a dramatic magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #402B3B?

#402B3B in RGB is (64, 43, 59) - 64 red, 43 green, and 59 blue.

How to use #402B3B in CSS?

Use #402B3B directly in your CSS properties like color or background-color.

What colors go well with #402B3B?

#2B4030 (complementary), #3B2B40 (analogous), and #120C11 (lighter shade) work well with #402B3B.