#340FA3 Color Information

Hex color code: #340FA3

#340FA3 is a eye-catching purple color. In RGB it is (52, 15, 163), and in HSL it is (255°, 83%, 35%). It is widely used in graphic design.

Try:
Color NameIndigo
HEX
#340FA3
RGB
52, 15, 163
HSL
255°, 83%, 35%
CMYK
68%, 91%, 0%, 36%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #340FA3; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

52, 15, 163

Red: 52 / Green: 15 / Blue: 163

HSL

255°, 83%, 35%

Hue: 255° / Saturation: 83% / Lightness: 35%

CMYK

68%, 91%, 0%, 36%

Cyan: 68% / Magenta: 91% / Yellow: 0% / Key: 36%

What color is #340FA3?

#340FA3 is a highly saturated hue associated with energy and excitement.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #340FA3 to RGB:

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

HEX to HSL

Convert #340FA3 to HSL:

hsl(255, 83%, 35%)RGB to HSL Converter →

HEX to CMYK

Convert #340FA3 to CMYK:

cmyk(68%, 91%, 0%, 36%)Color Converter →

Color Meaning and Usage

#340FA3 is a eye-catching purple color with RGB values of 52, 15, 163 and HSL of 255°, 83%, 35%. This highly saturated hue evokes energy and excitement, making it suitable for frequently seen in web interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #340FA3 is #7EA30F, creating high-contrast pairings. For softer combinations, try analogous colors like #0F34A3.

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

Contrast with #340FA3

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #340FA3?

#340FA3 is a eye-catching purple color - a highly saturated hue that evokes energy and excitement.

What is the RGB value of #340FA3?

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

How to use #340FA3 in CSS?

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

What colors go well with #340FA3?

#7EA30F (complementary), #0F34A3 (analogous), and #1E095D (lighter shade) work well with #340FA3.