#2A548D Color Information

Hex color code: #2A548D

#2A548D is a calming blue color. In RGB it is (42, 84, 141), and in HSL it is (215°, 54%, 36%). It is often used for branding and logos.

Try:
Color NameDark Slate Blue
HEX
#2A548D
RGB
42, 84, 141
HSL
215°, 54%, 36%
CMYK
70%, 40%, 0%, 45%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #2A548D; 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 #2A548D; background-color: #2A548D15; }

Alert / Toast

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

Link / Accent

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

a { color: #2A548D; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #2A548D in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

42, 84, 141

Red: 42 / Green: 84 / Blue: 141

HSL

215°, 54%, 36%

Hue: 215° / Saturation: 54% / Lightness: 36%

CMYK

70%, 40%, 0%, 45%

Cyan: 70% / Magenta: 40% / Yellow: 0% / Key: 45%

What color is #2A548D?

#2A548D is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #2A548D to RGB:

rgb(42, 84, 141)HEX to RGB Converter →

HEX to HSL

Convert #2A548D to HSL:

hsl(215, 54%, 36%)RGB to HSL Converter →

HEX to CMYK

Convert #2A548D to CMYK:

cmyk(70%, 40%, 0%, 45%)Color Converter →

Color Meaning and Usage

A calming blue tone, #2A548D has RGB (42, 84, 141) and HSL (215°, 54%, 36%). Known for evoking creativity and luxury, this blue-purple hue is well suited for marketing pages and hero sections. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #2A548D is #8D642A, creating high-contrast pairings. For softer combinations, try analogous colors like #2A858D.

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

Contrast with #2A548D

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #2A548D?

#2A548D is a calming blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #2A548D?

#2A548D in RGB is (42, 84, 141) - 42 red, 84 green, and 141 blue.

How to use #2A548D in CSS?

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

What colors go well with #2A548D?

#8D642A (complementary), #2A858D (analogous), and #193152 (lighter shade) work well with #2A548D.