#28229B Color Information

Hex color code: #28229B

#28229B is a cool blue color. In RGB it is (40, 34, 155), and in HSL it is (243°, 64%, 37%). It is commonly used in modern UI design.

Try:
Color NameDark Slate Blue
HEX
#28229B
RGB
40, 34, 155
HSL
243°, 64%, 37%
CMYK
74%, 78%, 0%, 39%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #28229B; 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 #28229B; background-color: #28229B15; }

Alert / Toast

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

Link / Accent

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

a { color: #28229B; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #28229B in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

40, 34, 155

Red: 40 / Green: 34 / Blue: 155

HSL

243°, 64%, 37%

Hue: 243° / Saturation: 64% / Lightness: 37%

CMYK

74%, 78%, 0%, 39%

Cyan: 74% / Magenta: 78% / Yellow: 0% / Key: 39%

What color is #28229B?

#28229B is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #28229B to RGB:

rgb(40, 34, 155)HEX to RGB Converter →

HEX to HSL

Convert #28229B to HSL:

hsl(243, 64%, 37%)RGB to HSL Converter →

HEX to CMYK

Convert #28229B to CMYK:

cmyk(74%, 78%, 0%, 39%)Color Converter →

Color Meaning and Usage

A cool blue tone, #28229B has RGB (40, 34, 155) and HSL (243°, 64%, 37%). Known for evoking creativity and luxury, this blue-purple hue is widely used in graphic design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #28229B is #959B22, creating high-contrast pairings. For softer combinations, try analogous colors like #22589B.

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

Contrast with #28229B

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #28229B?

#28229B is a cool blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #28229B?

#28229B in RGB is (40, 34, 155) - 40 red, 34 green, and 155 blue.

How to use #28229B in CSS?

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

What colors go well with #28229B?

#959B22 (complementary), #22589B (analogous), and #18145C (lighter shade) work well with #28229B.