#402DA9 Color Information

Hex color code: #402DA9

The hex color #402DA9 is a peaceful blue with RGB values of (64, 45, 169) and HSL of (249°, 58%, 42%). It is widely used in graphic design.

Try:
Color NameDark Slate Blue
HEX
#402DA9
RGB
64, 45, 169
HSL
249°, 58%, 42%
CMYK
62%, 73%, 0%, 34%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #402DA9; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

64, 45, 169

Red: 64 / Green: 45 / Blue: 169

HSL

249°, 58%, 42%

Hue: 249° / Saturation: 58% / Lightness: 42%

CMYK

62%, 73%, 0%, 34%

Cyan: 62% / Magenta: 73% / Yellow: 0% / Key: 34%

What color is #402DA9?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #402DA9 to RGB:

rgb(64, 45, 169)HEX to RGB Converter →

HEX to HSL

Convert #402DA9 to HSL:

hsl(249, 58%, 42%)RGB to HSL Converter →

HEX to CMYK

Convert #402DA9 to CMYK:

cmyk(62%, 73%, 0%, 34%)Color Converter →

Color Meaning and Usage

#402DA9 is a serene blue color with RGB values of 64, 45, 169 and HSL of 249°, 58%, 42%. This blue-purple hue evokes creativity and luxury, making it suitable for a common choice for dashboards and SaaS products. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #402DA9 is #97A92D, creating high-contrast pairings. For softer combinations, try analogous colors like #2D58A9.

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

Contrast with #402DA9

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #402DA9?

#402DA9 is a serene blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #402DA9?

#402DA9 in RGB is (64, 45, 169) - 64 red, 45 green, and 169 blue.

How to use #402DA9 in CSS?

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

What colors go well with #402DA9?

#97A92D (complementary), #2D58A9 (analogous), and #291D6D (lighter shade) work well with #402DA9.