#335B3F Color Information

Hex color code: #335B3F

#335B3F is a pastel green color. In RGB it is (51, 91, 63), and in HSL it is (138°, 28%, 28%). It is commonly used in modern UI design.

Try:
Color NameDark Slate Gray
HEX
#335B3F
RGB
51, 91, 63
HSL
138°, 28%, 28%
CMYK
44%, 0%, 31%, 64%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #335B3F; 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 #335B3F; background-color: #335B3F15; }

Alert / Toast

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

Link / Accent

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

a { color: #335B3F; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #335B3F in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

51, 91, 63

Red: 51 / Green: 91 / Blue: 63

HSL

138°, 28%, 28%

Hue: 138° / Saturation: 28% / Lightness: 28%

CMYK

44%, 0%, 31%, 64%

Cyan: 44% / Magenta: 0% / Yellow: 31% / Key: 64%

What color is #335B3F?

#335B3F is a green hue associated with nature and harmony.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #335B3F to RGB:

rgb(51, 91, 63)HEX to RGB Converter →

HEX to HSL

Convert #335B3F to HSL:

hsl(138, 28%, 28%)RGB to HSL Converter →

HEX to CMYK

Convert #335B3F to CMYK:

cmyk(44%, 0%, 31%, 64%)Color Converter →

Color Meaning and Usage

A gentle green tone, #335B3F has RGB (51, 91, 63) and HSL (138°, 28%, 28%). Known for evoking nature and harmony, this green hue is often used for buttons, highlights, and accents. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #335B3F is #5B334F, creating high-contrast pairings. For softer combinations, try analogous colors like #3B5B33.

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

Contrast with #335B3F

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #335B3F?

#335B3F is a gentle green color - a green hue that evokes nature and harmony.

What is the RGB value of #335B3F?

#335B3F in RGB is (51, 91, 63) - 51 red, 91 green, and 63 blue.

How to use #335B3F in CSS?

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

What colors go well with #335B3F?

#5B334F (complementary), #3B5B33 (analogous), and #182A1D (lighter shade) work well with #335B3F.