#40263C Color Information

Hex color code: #40263C

#40263C is a deep magenta color. In RGB it is (64, 38, 60), and in HSL it is (309°, 25%, 20%). It is frequently seen in web interfaces.

Try:
Color NameDark Slate Gray
HEX
#40263C
RGB
64, 38, 60
HSL
309°, 25%, 20%
CMYK
0%, 41%, 6%, 75%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #40263C; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

64, 38, 60

Red: 64 / Green: 38 / Blue: 60

HSL

309°, 25%, 20%

Hue: 309° / Saturation: 25% / Lightness: 20%

CMYK

0%, 41%, 6%, 75%

Cyan: 0% / Magenta: 41% / Yellow: 6% / Key: 75%

What color is #40263C?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #40263C to RGB:

rgb(64, 38, 60)HEX to RGB Converter →

HEX to HSL

Convert #40263C to HSL:

hsl(309, 25%, 20%)RGB to HSL Converter →

HEX to CMYK

Convert #40263C to CMYK:

cmyk(0%, 41%, 6%, 75%)Color Converter →

Color Meaning and Usage

#40263C is a dramatic magenta color with RGB values of 64, 38, 60 and HSL of 309°, 25%, 20%. This magenta-red hue evokes romance and playfulness, making it suitable for well suited for marketing pages and hero sections. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #40263C is #26402A, creating high-contrast pairings. For softer combinations, try analogous colors like #372640.

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

Contrast with #40263C

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #40263C?

#40263C is a dramatic magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #40263C?

#40263C in RGB is (64, 38, 60) - 64 red, 38 green, and 60 blue.

How to use #40263C in CSS?

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

What colors go well with #40263C?

#26402A (complementary), #372640 (analogous), and #100A0F (lighter shade) work well with #40263C.