#21042F Color Information

Hex color code: #21042F

A deep purple shade, #21042F appears as (33, 4, 47) in RGB and (280°, 84%, 10%) in HSL. It is commonly used in modern UI design.

Try:
Color NameBlack
HEX
#21042F
RGB
33, 4, 47
HSL
280°, 84%, 10%
CMYK
30%, 91%, 0%, 82%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #21042F; 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 #21042F; background-color: #21042F15; }

Alert / Toast

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

Link / Accent

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

a { color: #21042F; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #21042F in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

33, 4, 47

Red: 33 / Green: 4 / Blue: 47

HSL

280°, 84%, 10%

Hue: 280° / Saturation: 84% / Lightness: 10%

CMYK

30%, 91%, 0%, 82%

Cyan: 30% / Magenta: 91% / Yellow: 0% / Key: 82%

What color is #21042F?

#21042F is a very dark shade associated with sophistication and elegance.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #21042F to RGB:

rgb(33, 4, 47)HEX to RGB Converter →

HEX to HSL

Convert #21042F to HSL:

hsl(280, 84%, 10%)RGB to HSL Converter →

HEX to CMYK

Convert #21042F to CMYK:

cmyk(30%, 91%, 0%, 82%)Color Converter →

Color Meaning and Usage

A deep purple tone, #21042F has RGB (33, 4, 47) and HSL (280°, 84%, 10%). Known for evoking sophistication and elegance, this very dark shade is widely used in graphic design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #21042F is #122F04, creating high-contrast pairings. For softer combinations, try analogous colors like #0B042F.

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

Contrast with #21042F

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #21042F?

#21042F is a deep purple color - a very dark shade that evokes sophistication and elegance.

What is the RGB value of #21042F?

#21042F in RGB is (33, 4, 47) - 33 red, 4 green, and 47 blue.

How to use #21042F in CSS?

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

What colors go well with #21042F?

#122F04 (complementary), #0B042F (analogous), and #000000 (lighter shade) work well with #21042F.