#340F62 Color Information

Hex color code: #340F62

#340F62 is a dark purple color. In RGB it is (52, 15, 98), and in HSL it is (267°, 73%, 22%). It is often used for branding and logos.

Try:
Color NameIndigo
HEX
#340F62
RGB
52, 15, 98
HSL
267°, 73%, 22%
CMYK
47%, 85%, 0%, 62%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #340F62; 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 #340F62; background-color: #340F6215; }

Alert / Toast

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

Link / Accent

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

a { color: #340F62; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #340F62 in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

52, 15, 98

Red: 52 / Green: 15 / Blue: 98

HSL

267°, 73%, 22%

Hue: 267° / Saturation: 73% / Lightness: 22%

CMYK

47%, 85%, 0%, 62%

Cyan: 47% / Magenta: 85% / Yellow: 0% / Key: 62%

What color is #340F62?

#340F62 is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #340F62 to RGB:

rgb(52, 15, 98)HEX to RGB Converter →

HEX to HSL

Convert #340F62 to HSL:

hsl(267, 73%, 22%)RGB to HSL Converter →

HEX to CMYK

Convert #340F62 to CMYK:

cmyk(47%, 85%, 0%, 62%)Color Converter →

Color Meaning and Usage

A dark purple tone, #340F62 has RGB (52, 15, 98) and HSL (267°, 73%, 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 #340F62 is #3C610F, creating high-contrast pairings. For softer combinations, try analogous colors like #0F1361.

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

Contrast with #340F62

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #340F62?

#340F62 is a dark purple color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #340F62?

#340F62 in RGB is (52, 15, 98) - 52 red, 15 green, and 98 blue.

How to use #340F62 in CSS?

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

What colors go well with #340F62?

#3C610F (complementary), #0F1361 (analogous), and #11051F (lighter shade) work well with #340F62.