#21284A Color Information

Hex color code: #21284A

A rich blue shade, #21284A appears as (33, 40, 74) in RGB and (230°, 38%, 21%) in HSL. It is often used for branding and logos.

Try:
Color NameDark Slate Gray
HEX
#21284A
RGB
33, 40, 74
HSL
230°, 38%, 21%
CMYK
55%, 46%, 0%, 71%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #21284A; 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 #21284A; background-color: #21284A15; }

Alert / Toast

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

Link / Accent

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

a { color: #21284A; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #21284A in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

33, 40, 74

Red: 33 / Green: 40 / Blue: 74

HSL

230°, 38%, 21%

Hue: 230° / Saturation: 38% / Lightness: 21%

CMYK

55%, 46%, 0%, 71%

Cyan: 55% / Magenta: 46% / Yellow: 0% / Key: 71%

What color is #21284A?

#21284A is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #21284A to RGB:

rgb(33, 40, 74)HEX to RGB Converter →

HEX to HSL

Convert #21284A to HSL:

hsl(230, 38%, 21%)RGB to HSL Converter →

HEX to CMYK

Convert #21284A to CMYK:

cmyk(55%, 46%, 0%, 71%)Color Converter →

Color Meaning and Usage

#21284A is a rich blue color with RGB values of 33, 40, 74 and HSL of 230°, 38%, 21%. 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 #21284A is #4A4321, creating high-contrast pairings. For softer combinations, try analogous colors like #213C4A.

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

Contrast with #21284A

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #21284A?

#21284A is a rich blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #21284A?

#21284A in RGB is (33, 40, 74) - 33 red, 40 green, and 74 blue.

How to use #21284A in CSS?

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

What colors go well with #21284A?

#4A4321 (complementary), #213C4A (analogous), and #090B15 (lighter shade) work well with #21284A.