#42428A Color Information

Hex color code: #42428A

#42428A is a pastel blue color. In RGB it is (66, 66, 138), and in HSL it is (240°, 35%, 40%). It is frequently seen in web interfaces.

Try:
Color NameDark Slate Blue
HEX
#42428A
RGB
66, 66, 138
HSL
240°, 35%, 40%
CMYK
52%, 52%, 0%, 46%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #42428A; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

66, 66, 138

Red: 66 / Green: 66 / Blue: 138

HSL

240°, 35%, 40%

Hue: 240° / Saturation: 35% / Lightness: 40%

CMYK

52%, 52%, 0%, 46%

Cyan: 52% / Magenta: 52% / Yellow: 0% / Key: 46%

What color is #42428A?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #42428A to RGB:

rgb(66, 66, 138)HEX to RGB Converter →

HEX to HSL

Convert #42428A to HSL:

hsl(240, 35%, 40%)RGB to HSL Converter →

HEX to CMYK

Convert #42428A to CMYK:

cmyk(52%, 52%, 0%, 46%)Color Converter →

Color Meaning and Usage

A subtle blue tone, #42428A has RGB (66, 66, 138) and HSL (240°, 35%, 40%). Known for evoking creativity and luxury, this blue-purple hue is often used for buttons, highlights, and accents. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #42428A is #8A8A42, creating high-contrast pairings. For softer combinations, try analogous colors like #42668A.

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

Contrast with #42428A

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #42428A?

#42428A is a subtle blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #42428A?

#42428A in RGB is (66, 66, 138) - 66 red, 66 green, and 138 blue.

How to use #42428A in CSS?

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

What colors go well with #42428A?

#8A8A42 (complementary), #42668A (analogous), and #292956 (lighter shade) work well with #42428A.