#42307E Color Information

Hex color code: #42307E

A subtle blue shade, #42307E appears as (66, 48, 126) in RGB and (254°, 45%, 34%) in HSL. It is popular in mobile app design.

Try:
Color NameDark Slate Blue
HEX
#42307E
RGB
66, 48, 126
HSL
254°, 45%, 34%
CMYK
48%, 62%, 0%, 51%

Shades

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

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #42307E, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #42307E; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #42307E; 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 #42307E; background-color: #42307E15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #42307E20; border-left: 4px solid #42307E; }

Link / Accent

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

a { color: #42307E; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #42307E in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

66, 48, 126

Red: 66 / Green: 48 / Blue: 126

HSL

254°, 45%, 34%

Hue: 254° / Saturation: 45% / Lightness: 34%

CMYK

48%, 62%, 0%, 51%

Cyan: 48% / Magenta: 62% / Yellow: 0% / Key: 51%

What color is #42307E?

#42307E is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #42307E to RGB:

rgb(66, 48, 126)HEX to RGB Converter →

HEX to HSL

Convert #42307E to HSL:

hsl(254, 45%, 34%)RGB to HSL Converter →

HEX to CMYK

Convert #42307E to CMYK:

cmyk(48%, 62%, 0%, 51%)Color Converter →

Color Meaning and Usage

A pastel blue tone, #42307E has RGB (66, 48, 126) and HSL (254°, 45%, 34%). 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 #42307E is #6C7E30, creating high-contrast pairings. For softer combinations, try analogous colors like #30447E.

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

Contrast with #42307E

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #42307E?

#42307E is a pastel blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #42307E?

#42307E in RGB is (66, 48, 126) - 66 red, 48 green, and 126 blue.

How to use #42307E in CSS?

Use #42307E directly in your CSS properties like color or background-color.

What colors go well with #42307E?

#6C7E30 (complementary), #30447E (analogous), and #251B46 (lighter shade) work well with #42307E.