#403045 Color Information

Hex color code: #403045

The hex color #403045 is a intense magenta with RGB values of (64, 48, 69) and HSL of (286°, 18%, 23%). It is popular in mobile app design.

Try:
Color NameDark Slate Gray
HEX
#403045
RGB
64, 48, 69
HSL
286°, 18%, 23%
CMYK
7%, 30%, 0%, 73%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #403045; 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 #403045; background-color: #40304515; }

Alert / Toast

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

Link / Accent

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

a { color: #403045; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #403045 in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

64, 48, 69

Red: 64 / Green: 48 / Blue: 69

HSL

286°, 18%, 23%

Hue: 286° / Saturation: 18% / Lightness: 23%

CMYK

7%, 30%, 0%, 73%

Cyan: 7% / Magenta: 30% / Yellow: 0% / Key: 73%

What color is #403045?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #403045 to RGB:

rgb(64, 48, 69)HEX to RGB Converter →

HEX to HSL

Convert #403045 to HSL:

hsl(286, 18%, 23%)RGB to HSL Converter →

HEX to CMYK

Convert #403045 to CMYK:

cmyk(7%, 30%, 0%, 73%)Color Converter →

Color Meaning and Usage

#403045 is a rich magenta color with RGB values of 64, 48, 69 and HSL of 286°, 18%, 23%. This magenta-red hue evokes romance and playfulness, making it suitable for frequently seen in web interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #403045 is #354530, creating high-contrast pairings. For softer combinations, try analogous colors like #363045.

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

Contrast with #403045

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #403045?

#403045 is a rich magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #403045?

#403045 in RGB is (64, 48, 69) - 64 red, 48 green, and 69 blue.

How to use #403045 in CSS?

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

What colors go well with #403045?

#354530 (complementary), #363045 (analogous), and #161118 (lighter shade) work well with #403045.