#402F60 Color Information

Hex color code: #402F60

#402F60 is a gentle purple color. In RGB it is (64, 47, 96), and in HSL it is (261°, 34%, 28%). It is often used for branding and logos.

Try:
Color NameDark Slate Gray
HEX
#402F60
RGB
64, 47, 96
HSL
261°, 34%, 28%
CMYK
33%, 51%, 0%, 62%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #402F60; 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 #402F60; background-color: #402F6015; }

Alert / Toast

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

Link / Accent

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

a { color: #402F60; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #402F60 in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

64, 47, 96

Red: 64 / Green: 47 / Blue: 96

HSL

261°, 34%, 28%

Hue: 261° / Saturation: 34% / Lightness: 28%

CMYK

33%, 51%, 0%, 62%

Cyan: 33% / Magenta: 51% / Yellow: 0% / Key: 62%

What color is #402F60?

#402F60 is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #402F60 to RGB:

rgb(64, 47, 96)HEX to RGB Converter →

HEX to HSL

Convert #402F60 to HSL:

hsl(261, 34%, 28%)RGB to HSL Converter →

HEX to CMYK

Convert #402F60 to CMYK:

cmyk(33%, 51%, 0%, 62%)Color Converter →

Color Meaning and Usage

A delicate purple tone, #402F60 has RGB (64, 47, 96) and HSL (261°, 34%, 28%). Known for evoking creativity and luxury, this blue-purple hue is often used for branding and logos. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #402F60 is #4F602F, creating high-contrast pairings. For softer combinations, try analogous colors like #2F3660.

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

Contrast with #402F60

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #402F60?

#402F60 is a delicate purple color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #402F60?

#402F60 in RGB is (64, 47, 96) - 64 red, 47 green, and 96 blue.

How to use #402F60 in CSS?

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

What colors go well with #402F60?

#4F602F (complementary), #2F3660 (analogous), and #1E162C (lighter shade) work well with #402F60.