#340646 Color Information

Hex color code: #340646

A intense purple shade, #340646 appears as (52, 6, 70) in RGB and (283°, 84%, 15%) in HSL. It is widely used in graphic design.

Try:
Color NameIndigo
HEX
#340646
RGB
52, 6, 70
HSL
283°, 84%, 15%
CMYK
26%, 91%, 0%, 73%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #340646; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

52, 6, 70

Red: 52 / Green: 6 / Blue: 70

HSL

283°, 84%, 15%

Hue: 283° / Saturation: 84% / Lightness: 15%

CMYK

26%, 91%, 0%, 73%

Cyan: 26% / Magenta: 91% / Yellow: 0% / Key: 73%

What color is #340646?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #340646 to RGB:

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

HEX to HSL

Convert #340646 to HSL:

hsl(283, 84%, 15%)RGB to HSL Converter →

HEX to CMYK

Convert #340646 to CMYK:

cmyk(26%, 91%, 0%, 73%)Color Converter →

Color Meaning and Usage

A dark purple tone, #340646 has RGB (52, 6, 70) and HSL (283°, 84%, 15%). Known for evoking sophistication and elegance, this very dark shade is frequently seen in web interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #340646 is #184606, creating high-contrast pairings. For softer combinations, try analogous colors like #140646.

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

Contrast with #340646

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #340646?

#340646 is a dark purple color - a very dark shade that evokes sophistication and elegance.

What is the RGB value of #340646?

#340646 in RGB is (52, 6, 70) - 52 red, 6 green, and 70 blue.

How to use #340646 in CSS?

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

What colors go well with #340646?

#184606 (complementary), #140646 (analogous), and #000000 (lighter shade) work well with #340646.