#2B402B Color Information

Hex color code: #2B402B

The hex color #2B402B is a intense green with RGB values of (43, 64, 43) and HSL of (120°, 20%, 21%). It is widely used in graphic design.

Try:
Color NameDark Slate Gray
HEX
#2B402B
RGB
43, 64, 43
HSL
120°, 20%, 21%
CMYK
33%, 0%, 33%, 75%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #2B402B; 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 #2B402B; background-color: #2B402B15; }

Alert / Toast

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

Link / Accent

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

a { color: #2B402B; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #2B402B in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

43, 64, 43

Red: 43 / Green: 64 / Blue: 43

HSL

120°, 20%, 21%

Hue: 120° / Saturation: 20% / Lightness: 21%

CMYK

33%, 0%, 33%, 75%

Cyan: 33% / Magenta: 0% / Yellow: 33% / Key: 75%

What color is #2B402B?

#2B402B is a green hue associated with nature and harmony.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #2B402B to RGB:

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

HEX to HSL

Convert #2B402B to HSL:

hsl(120, 20%, 21%)RGB to HSL Converter →

HEX to CMYK

Convert #2B402B to CMYK:

cmyk(33%, 0%, 33%, 75%)Color Converter →

Color Meaning and Usage

A dramatic green tone, #2B402B has RGB (43, 64, 43) and HSL (120°, 20%, 21%). Known for evoking nature and harmony, this green hue is a common choice for dashboards and SaaS products. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #2B402B is #402B40, creating high-contrast pairings. For softer combinations, try analogous colors like #36402B.

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

Contrast with #2B402B

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #2B402B?

#2B402B is a dramatic green color - a green hue that evokes nature and harmony.

What is the RGB value of #2B402B?

#2B402B in RGB is (43, 64, 43) - 43 red, 64 green, and 43 blue.

How to use #2B402B in CSS?

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

What colors go well with #2B402B?

#402B40 (complementary), #36402B (analogous), and #0C120C (lighter shade) work well with #2B402B.