#D31249 Color Information

Hex color code: #D31249

A vivid magenta shade, #D31249 appears as (211, 18, 73) in RGB and (343°, 84%, 45%) in HSL. It is frequently seen in web interfaces.

Try:
Color NameCrimson
HEX
#D31249
RGB
211, 18, 73
HSL
343°, 84%, 45%
CMYK
0%, 91%, 65%, 17%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #D31249; 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 #D31249; background-color: #D3124915; }

Alert / Toast

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

Link / Accent

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

a { color: #D31249; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #D31249 in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

211, 18, 73

Red: 211 / Green: 18 / Blue: 73

HSL

343°, 84%, 45%

Hue: 343° / Saturation: 84% / Lightness: 45%

CMYK

0%, 91%, 65%, 17%

Cyan: 0% / Magenta: 91% / Yellow: 65% / Key: 17%

What color is #D31249?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #D31249 to RGB:

rgb(211, 18, 73)HEX to RGB Converter →

HEX to HSL

Convert #D31249 to HSL:

hsl(343, 84%, 45%)RGB to HSL Converter →

HEX to CMYK

Convert #D31249 to CMYK:

cmyk(0%, 91%, 65%, 17%)Color Converter →

Color Meaning and Usage

A dynamic magenta tone, #D31249 has RGB (211, 18, 73) and HSL (343°, 84%, 45%). Known for evoking energy and excitement, this highly saturated hue is frequently seen in web interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #D31249 is #12D39D, creating high-contrast pairings. For softer combinations, try analogous colors like #D312A9.

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

Contrast with #D31249

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #D31249?

#D31249 is a dynamic magenta color - a highly saturated hue that evokes energy and excitement.

What is the RGB value of #D31249?

#D31249 in RGB is (211, 18, 73) - 211 red, 18 green, and 73 blue.

How to use #D31249 in CSS?

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

What colors go well with #D31249?

#12D39D (complementary), #D312A9 (analogous), and #8D0C31 (lighter shade) work well with #D31249.