#405340 Color Information

Hex color code: #405340

The hex color #405340 is a subtle green with RGB values of (64, 83, 64) and HSL of (120°, 13%, 29%). It is popular in mobile app design.

Try:
Color NameDark Slate Gray
HEX
#405340
RGB
64, 83, 64
HSL
120°, 13%, 29%
CMYK
23%, 0%, 23%, 67%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #405340; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

64, 83, 64

Red: 64 / Green: 83 / Blue: 64

HSL

120°, 13%, 29%

Hue: 120° / Saturation: 13% / Lightness: 29%

CMYK

23%, 0%, 23%, 67%

Cyan: 23% / Magenta: 0% / Yellow: 23% / Key: 67%

What color is #405340?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #405340 to RGB:

rgb(64, 83, 64)HEX to RGB Converter →

HEX to HSL

Convert #405340 to HSL:

hsl(120, 13%, 29%)RGB to HSL Converter →

HEX to CMYK

Convert #405340 to CMYK:

cmyk(23%, 0%, 23%, 67%)Color Converter →

Color Meaning and Usage

#405340 is a neutral green color with RGB values of 64, 83, 64 and HSL of 120°, 13%, 29%. This desaturated neutral evokes balance and subtlety, making it suitable for frequently chosen for fintech and productivity apps. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #405340 is #544054, creating high-contrast pairings. For softer combinations, try analogous colors like #4A5440.

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

Contrast with #405340

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #405340?

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

What is the RGB value of #405340?

#405340 in RGB is (64, 83, 64) - 64 red, 83 green, and 64 blue.

How to use #405340 in CSS?

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

What colors go well with #405340?

#544054 (complementary), #4A5440 (analogous), and #1F281F (lighter shade) work well with #405340.