#405442 Color Information

Hex color code: #405442

A balanced green shade, #405442 appears as (64, 84, 66) in RGB and (126°, 14%, 29%) in HSL. It is frequently seen in web interfaces.

Try:
Color NameDark Slate Gray
HEX
#405442
RGB
64, 84, 66
HSL
126°, 14%, 29%
CMYK
24%, 0%, 21%, 67%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #405442; 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 #405442; background-color: #40544215; }

Alert / Toast

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

Link / Accent

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

a { color: #405442; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #405442 in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

64, 84, 66

Red: 64 / Green: 84 / Blue: 66

HSL

126°, 14%, 29%

Hue: 126° / Saturation: 14% / Lightness: 29%

CMYK

24%, 0%, 21%, 67%

Cyan: 24% / Magenta: 0% / Yellow: 21% / Key: 67%

What color is #405442?

#405442 is a desaturated neutral associated with balance and subtlety.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #405442 to RGB:

rgb(64, 84, 66)HEX to RGB Converter →

HEX to HSL

Convert #405442 to HSL:

hsl(126, 14%, 29%)RGB to HSL Converter →

HEX to CMYK

Convert #405442 to CMYK:

cmyk(24%, 0%, 21%, 67%)Color Converter →

Color Meaning and Usage

#405442 is a subtle green color with RGB values of 64, 84, 66 and HSL of 126°, 14%, 29%. This desaturated neutral evokes balance and subtlety, making it suitable for often used for buttons, highlights, and accents. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #405442 is #544052, creating high-contrast pairings. For softer combinations, try analogous colors like #485440.

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

Contrast with #405442

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #405442?

#405442 is a subtle green color - a desaturated neutral that evokes balance and subtlety.

What is the RGB value of #405442?

#405442 in RGB is (64, 84, 66) - 64 red, 84 green, and 66 blue.

How to use #405442 in CSS?

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

What colors go well with #405442?

#544052 (complementary), #485440 (analogous), and #1F2920 (lighter shade) work well with #405442.