Skip to content

#335d21

a deep, vivid green · neutral · closest name: Dark Green

RGB
51, 93, 33
HSL
102°, 48%, 25%
CMYK
45, 0, 65, 64
Luminance
0.0864

At a glance

Every number on this page in one read: what #335d21 is made of, how bright it looks, and which way it leans.

Hex
#335d21
Hue
102°
green
Saturation
48%
vivid
Lightness
25%
deep
Brightness
36%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0864
WCAG relative
Temperature
Neutral
55/100 cool
Color family
Green
Tone
Vivid
Best ink
White
7.70:1
Closest name
Dark Green
ΔE2000 6.5
Where it sits
Hue102° of 360°
Saturation48%
Lightness25%
Temperature
Warm ← → Cool55% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#335d21
RGBrgb(51, 93, 33)
HSLhsl(102, 48%, 25%)
CMYKcmyk(45%, 0%, 65%, 64%)
LABlab(35.3 -27.0 29.3)
LCHlch(35.3 39.9 132.7)
OKLCHoklch(0.433 0.101 137.5)
Decimal3366177
Display P3color(display-p3 0.200 0.365 0.129)

Copy-ready code

/* CSS */
color: #335d21;
background-color: #335d21;
/* Tailwind (arbitrary) */
class="text-[#335d21] bg-[#335d21]"
/* SCSS */
$brand: #335d21;
/* SwiftUI */
Color(red: 0.200, green: 0.365, blue: 0.129)
/* Android */
Color.parseColor("#335d21")
/* Flutter */
Color(0xFF335D21)
/* Python / OpenCV (BGR) */
(33, 93, 51)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #335d21 · 7.70:1
Use #ffffffAAA at every size.
Aa
White text · 7.70:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.73:1
AA fail · AA large fail · AAA fail
Reading the other direction: #335d21 as text scores 7.70:1 on white and 2.73:1 on black.

Accessibility — WCAG contrast

Aa
#335d21 on white: 7.70:1
AA ✓ pass · AA-large · AAA
Aa
#335d21 on black: 2.73:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #60551A
deuteranopia · #5A5226
tritanopia · #315A50

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #335d21 is pinned to step 900; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F6FAF5
#EDF5EA
#D8ECD0
#BCE2AC
#9BD383
#79C459
#63B540
#539735
#42782B
#335d21
#203715
Base = 900Lightest = 50 · #F6FAF5Darkest = 950 · #203715
:root {
  --brand-50: #F6FAF5;
  --brand-100: #EDF5EA;
  --brand-200: #D8ECD0;
  --brand-300: #BCE2AC;
  --brand-400: #9BD383;
  --brand-500: #79C459;
  --brand-600: #63B540;
  --brand-700: #539735;
  --brand-800: #42782B;
  --brand-900: #335d21;
  --brand-950: #203715;
  --brand: #335d21;
  --brand-ink: #ffffff;
}

Colors that work with #335d21

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F6FAF4
Tinted page background
Border#CEEAC3
Hairlines and dividers
Muted text#639B4B
Captions on the surface
Accent#3C1E5F
Second voice, not a rival
Dark variant#345E21
Hover, pressed, headers
Light variant#F0F8EC
Selected rows, tints
Dark surface#192414
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #335d21

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#4B215D
Analogous left#515D21
Analogous right#215D2D
Split-complement 1#2D215D
Split-complement 2#5D2151
Triadic 1#21335D
Triadic 2#5D2133
Tetradic#21515D

RGB percentages

Red20.0%
Green36.5%
Blue12.9%

CMYK percentages

Cyan45.2%
Magenta0.0%
Yellow64.5%
Key (black)63.5%

Color previews

#335d21 text on a black background

contrast 2.73:1

Card sample

#335d21 text on a white background

contrast 7.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #335d21;
Background color
Panel with #335d21 background
background-color: #335d21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #335d21;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(51, 93, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 93, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #335d21;
background: linear-gradient(135deg, #335d21, #215D37);

Monochromatic scale

Palettes built from #335d21

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#335d21 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
SustainabilityFinanceHealth and wellnessAgriculture
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#335d21, answered

What color is #335d21?

#335d21 is a deep vivid green, closest to Dark Green (ΔE2000 6.5). It sits at 102° on the hue wheel with 48% saturation and 25% lightness, which reads as neutral.

What is the RGB value of #335d21?

rgb(51, 93, 33) — 51 red, 93 green and 33 blue out of 255, or 20% / 36.5% / 12.9% by channel.

Is #335d21 a light or a dark color?

It is a dark color. Relative luminance is 0.0864 and perceived brightness is 30%, so white text on it reaches 7.70:1.

Should I use black or white text on #335d21?

White. It scores 7.70:1 against #335d21, versus 2.73:1 for black — AAA at any size.

What is the complementary color of #335d21?

#4B215D sits directly opposite on the wheel. Softer options are the split-complements #2D215D and #5D2151, which give the same contrast with far less vibration.

What colors go well with #335d21?

For interface work: #F6FAF4 as the surface, #CEEAC3 for borders, #639B4B for secondary text, #3C1E5F as an accent and #345E21 for hover and pressed states. For a palette, the analogous pair #515D21 and #215D2D stays calm, while #4B215D is the loudest partner.

What is #335d21 in CMYK for printing?

cmyk(45%, 0%, 65%, 64%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #335d21 warm or cool?

Neutral — it scores 55 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #495D21; nudged cooler, #205E24.

Work with #335d21 in the Color Lab