#40187C Color Information

Hex color code: #40187C

The hex color #40187C is a calming purple with RGB values of (64, 24, 124) and HSL of (264°, 68%, 29%). It is frequently seen in web interfaces.

Try:
Color NameIndigo
HEX
#40187C
RGB
64, 24, 124
HSL
264°, 68%, 29%
CMYK
48%, 81%, 0%, 51%

Shades

CSS Usage
color: #40187C;
background-color: #40187C;
border-color: #40187C;
box-shadow: 0 0 10px #40187C;
border: 2px solid #40187C;
Tailwind Usage
bg-[#40187C]
text-[#40187C]
border-[#40187C]
shadow-[0_0_10px_40187C]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #40187C, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #40187C; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #40187C; 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 #40187C; background-color: #40187C15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #40187C20; border-left: 4px solid #40187C; }

Link / Accent

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

a { color: #40187C; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #40187C in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

64, 24, 124

Red: 64 / Green: 24 / Blue: 124

HSL

264°, 68%, 29%

Hue: 264° / Saturation: 68% / Lightness: 29%

CMYK

48%, 81%, 0%, 51%

Cyan: 48% / Magenta: 81% / Yellow: 0% / Key: 51%

What color is #40187C?

#40187C is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #40187C to RGB:

rgb(64, 24, 124)HEX to RGB Converter →

HEX to HSL

Convert #40187C to HSL:

hsl(264, 68%, 29%)RGB to HSL Converter →

HEX to CMYK

Convert #40187C to CMYK:

cmyk(48%, 81%, 0%, 51%)Color Converter →

Color Meaning and Usage

#40187C is a calming purple color with RGB values of 64, 24, 124 and HSL of 264°, 68%, 29%. This blue-purple hue evokes creativity and luxury, making it suitable for often used for branding and logos. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #40187C is #547C18, creating high-contrast pairings. For softer combinations, try analogous colors like #18227C.

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

Contrast with #40187C

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #40187C?

#40187C is a calming purple color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #40187C?

#40187C in RGB is (64, 24, 124) - 64 red, 24 green, and 124 blue.

How to use #40187C in CSS?

Use #40187C directly in your CSS properties like color or background-color.

What colors go well with #40187C?

#547C18 (complementary), #18227C (analogous), and #1F0B3C (lighter shade) work well with #40187C.