#335A21

A color in the Green family

#335a21 is a color in the Green family: RGB(51, 90, 33), HSL(101°, 46%, 24%), CMYK(43%, 0%, 63%, 65%). Closest named color: darkgreen. Contrast is 8:1 on white and 2.63:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#335a21
RGBrgb(51 90 33)
RGB (legacy)rgb(51, 90, 33)
RGB %rgb(20% 35% 13%)
HSLhsl(101 46% 24%)
HSV / HSBhsv(101, 63%, 35%)
HWBhwb(101 13% 65%)
CMYKcmyk(43%, 0%, 63%, 65%)
CIELAB (D50)lab(34.31 -23.24 27.68)
LCHlch(34.31 36.14 130.02)
OKLaboklab(0.4245 -0.0707 0.0659)
OKLCHoklch(0.4245 0.0966 136.99)
Decimal3365409

Properties

Color ToneGreen
Closest named colordarkgreen ΔE 5.4
Closest web-safe color#336633
Hue101°
Saturation (HSL / HSV)46% / 63%
Lightness (HSL)24%
Brightness or Value (HSV)35%
Luminance (Rec.601 / Rec.709)28% / 30%
Relative luminance (WCAG)0.0813
Red / Green / Blue51 / 90 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
8.00:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.63:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 87.6 / -14.6 · As background with white / black text: Lc -92.3 / 16.4

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #335a21;
  --color-brand-oklch: oklch(42.45% 0.0966 136.99);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(51 90 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#335a21] text-[#335a21] border-[#335a21]">