#342F3F Color Information

Hex color code: #342F3F

A dark purple shade, #342F3F appears as (52, 47, 63) in RGB and (259°, 15%, 22%) in HSL. It is frequently seen in web interfaces.

Try:
Color NameDark Slate Gray
HEX
#342F3F
RGB
52, 47, 63
HSL
259°, 15%, 22%
CMYK
17%, 25%, 0%, 75%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #342F3F; 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 #342F3F; background-color: #342F3F15; }

Alert / Toast

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

Link / Accent

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

a { color: #342F3F; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #342F3F in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

52, 47, 63

Red: 52 / Green: 47 / Blue: 63

HSL

259°, 15%, 22%

Hue: 259° / Saturation: 15% / Lightness: 22%

CMYK

17%, 25%, 0%, 75%

Cyan: 17% / Magenta: 25% / Yellow: 0% / Key: 75%

What color is #342F3F?

#342F3F is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #342F3F to RGB:

rgb(52, 47, 63)HEX to RGB Converter →

HEX to HSL

Convert #342F3F to HSL:

hsl(259, 15%, 22%)RGB to HSL Converter →

HEX to CMYK

Convert #342F3F to CMYK:

cmyk(17%, 25%, 0%, 75%)Color Converter →

Color Meaning and Usage

A rich purple tone, #342F3F has RGB (52, 47, 63) and HSL (259°, 15%, 22%). Known for evoking creativity and luxury, this blue-purple hue is often used for buttons, highlights, and accents. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #342F3F is #3B4130, creating high-contrast pairings. For softer combinations, try analogous colors like #303341.

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

Contrast with #342F3F

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #342F3F?

#342F3F is a rich purple color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #342F3F?

#342F3F in RGB is (52, 47, 63) - 52 red, 47 green, and 63 blue.

How to use #342F3F in CSS?

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

What colors go well with #342F3F?

#3B4130 (complementary), #303341 (analogous), and #110F15 (lighter shade) work well with #342F3F.