#340641 Color Information

Hex color code: #340641

The hex color #340641 is a deep magenta with RGB values of (52, 6, 65) and HSL of (287°, 83%, 14%). It is commonly used in modern UI design.

Try:
Color NameIndigo
HEX
#340641
RGB
52, 6, 65
HSL
287°, 83%, 14%
CMYK
20%, 91%, 0%, 75%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #340641; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

52, 6, 65

Red: 52 / Green: 6 / Blue: 65

HSL

287°, 83%, 14%

Hue: 287° / Saturation: 83% / Lightness: 14%

CMYK

20%, 91%, 0%, 75%

Cyan: 20% / Magenta: 91% / Yellow: 0% / Key: 75%

What color is #340641?

#340641 is a very dark shade associated with sophistication and elegance.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #340641 to RGB:

rgb(52, 6, 65)HEX to RGB Converter →

HEX to HSL

Convert #340641 to HSL:

hsl(287, 83%, 14%)RGB to HSL Converter →

HEX to CMYK

Convert #340641 to CMYK:

cmyk(20%, 91%, 0%, 75%)Color Converter →

Color Meaning and Usage

A dramatic magenta tone, #340641 has RGB (52, 6, 65) and HSL (287°, 83%, 14%). Known for evoking sophistication and elegance, this very dark shade is typically applied in digital products. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #340641 is #134106, creating high-contrast pairings. For softer combinations, try analogous colors like #170641.

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

Contrast with #340641

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #340641?

#340641 is a dramatic magenta color - a very dark shade that evokes sophistication and elegance.

What is the RGB value of #340641?

#340641 in RGB is (52, 6, 65) - 52 red, 6 green, and 65 blue.

How to use #340641 in CSS?

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

What colors go well with #340641?

#134106 (complementary), #170641 (analogous), and #000000 (lighter shade) work well with #340641.