#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.
Shades
color: #40294C; background-color: #40294C; border-color: #40294C; box-shadow: 0 0 10px #40294C; border: 2px solid #40294C;
bg-[#40294C] text-[#40294C] border-[#40294C] shadow-[0_0_10px_40294C]
Generate Gradient
background: linear-gradient(90deg, #40294C, #FF5733);
Preview in UI
Button
Badge
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.
Alert / Toast
Link / Accent
This is a paragraph with a link using your color. The color can be applied to interactive elements.
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.
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
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.
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.