#40294C Color Information

Hex color code: #40294C

The hex color #40294C is a dark purple with RGB values of (64, 41, 76) and HSL of (279°, 30%, 23%). It is often used for branding and logos.

Try:
Color NameDark Slate Gray
HEX
#40294C
RGB
64, 41, 76
HSL
279°, 30%, 23%
CMYK
16%, 46%, 0%, 70%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #40294C; 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 #40294C; background-color: #40294C15; }

Alert / Toast

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

Link / Accent

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

a { color: #40294C; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #40294C in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

64, 41, 76

Red: 64 / Green: 41 / Blue: 76

HSL

279°, 30%, 23%

Hue: 279° / Saturation: 30% / Lightness: 23%

CMYK

16%, 46%, 0%, 70%

Cyan: 16% / Magenta: 46% / Yellow: 0% / Key: 70%

What color is #40294C?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #40294C to RGB:

rgb(64, 41, 76)HEX to RGB Converter →

HEX to HSL

Convert #40294C to HSL:

hsl(279, 30%, 23%)RGB to HSL Converter →

HEX to CMYK

Convert #40294C to CMYK:

cmyk(16%, 46%, 0%, 70%)Color Converter →

Color Meaning and Usage

A rich purple tone, #40294C has RGB (64, 41, 76) and HSL (279°, 30%, 23%). Known for evoking romance and playfulness, this magenta-red hue is popular in mobile app design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #40294C is #354C29, creating high-contrast pairings. For softer combinations, try analogous colors like #2E294C.

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

Contrast with #40294C

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #40294C?

#40294C is a rich purple color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #40294C?

#40294C in RGB is (64, 41, 76) - 64 red, 41 green, and 76 blue.

How to use #40294C in CSS?

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

What colors go well with #40294C?

#354C29 (complementary), #2E294C (analogous), and #160E1B (lighter shade) work well with #40294C.