#40129B Color Information

Hex color code: #40129B

#40129B is a bold purple color. In RGB it is (64, 18, 155), and in HSL it is (260°, 79%, 34%). It is frequently seen in web interfaces.

Try:
Color NameIndigo
HEX
#40129B
RGB
64, 18, 155
HSL
260°, 79%, 34%
CMYK
59%, 88%, 0%, 39%

Shades

CSS Usage
color: #40129B;
background-color: #40129B;
border-color: #40129B;
box-shadow: 0 0 10px #40129B;
border: 2px solid #40129B;
Tailwind Usage
bg-[#40129B]
text-[#40129B]
border-[#40129B]
shadow-[0_0_10px_40129B]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #40129B, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #40129B; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #40129B; 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 #40129B; background-color: #40129B15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #40129B20; border-left: 4px solid #40129B; }

Link / Accent

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

a { color: #40129B; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #40129B in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

64, 18, 155

Red: 64 / Green: 18 / Blue: 155

HSL

260°, 79%, 34%

Hue: 260° / Saturation: 79% / Lightness: 34%

CMYK

59%, 88%, 0%, 39%

Cyan: 59% / Magenta: 88% / Yellow: 0% / Key: 39%

What color is #40129B?

#40129B is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #40129B to RGB:

rgb(64, 18, 155)HEX to RGB Converter →

HEX to HSL

Convert #40129B to HSL:

hsl(260, 79%, 34%)RGB to HSL Converter →

HEX to CMYK

Convert #40129B to CMYK:

cmyk(59%, 88%, 0%, 39%)Color Converter →

Color Meaning and Usage

#40129B is a eye-catching purple color with RGB values of 64, 18, 155 and HSL of 260°, 79%, 34%. This blue-purple hue evokes creativity and luxury, making it suitable for a solid option for clean and minimal interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #40129B is #6E9B12, creating high-contrast pairings. For softer combinations, try analogous colors like #12299B.

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

Contrast with #40129B

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #40129B?

#40129B is a eye-catching purple color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #40129B?

#40129B in RGB is (64, 18, 155) - 64 red, 18 green, and 155 blue.

How to use #40129B in CSS?

Use #40129B directly in your CSS properties like color or background-color.

What colors go well with #40129B?

#6E9B12 (complementary), #12299B (analogous), and #240A57 (lighter shade) work well with #40129B.