#21254A Color Information

Hex color code: #21254A

#21254A is a rich blue color. In RGB it is (33, 37, 74), and in HSL it is (234°, 38%, 21%). It is popular in mobile app design.

Try:
Color NameDark Slate Gray
HEX
#21254A
RGB
33, 37, 74
HSL
234°, 38%, 21%
CMYK
55%, 50%, 0%, 71%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #21254A; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

33, 37, 74

Red: 33 / Green: 37 / Blue: 74

HSL

234°, 38%, 21%

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

CMYK

55%, 50%, 0%, 71%

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

What color is #21254A?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #21254A to RGB:

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

HEX to HSL

Convert #21254A to HSL:

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

HEX to CMYK

Convert #21254A to CMYK:

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

Color Meaning and Usage

#21254A is a rich blue color with RGB values of 33, 37, 74 and HSL of 234°, 38%, 21%. This blue-purple hue evokes creativity and luxury, making it suitable for frequently chosen for fintech and productivity apps. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #21254A is #4A4621, creating high-contrast pairings. For softer combinations, try analogous colors like #213A4A.

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

Contrast with #21254A

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #21254A?

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

What is the RGB value of #21254A?

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

How to use #21254A in CSS?

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

What colors go well with #21254A?

#4A4621 (complementary), #213A4A (analogous), and #090B15 (lighter shade) work well with #21254A.