#2F4F21

A color in the Green family

#2f4f21 is a color in the Green family: RGB(47, 79, 33), HSL(102°, 41%, 22%), CMYK(41%, 0%, 58%, 69%). Closest named color: darkslategray. Contrast is 9.29:1 on white and 2.26:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#2f4f21
RGBrgb(47 79 33)
RGB (legacy)rgb(47, 79, 33)
RGB %rgb(18% 31% 13%)
HSLhsl(102 41% 22%)
HSV / HSBhsv(102, 58%, 31%)
HWBhwb(102 13% 69%)
CMYKcmyk(41%, 0%, 58%, 69%)
CIELAB (D50)lab(30.23 -19.67 22.96)
LCHlch(30.23 30.24 130.59)
OKLaboklab(0.3906 -0.0596 0.0555)
OKLCHoklch(0.3906 0.0814 137.06)
Decimal3100449

Properties

Color ToneGreen
Closest named colordarkslategray ΔE 7.1
Closest web-safe color#336633
Hue102°
Saturation (HSL / HSV)41% / 58%
Lightness (HSL)22%
Brightness or Value (HSV)31%
Luminance (Rec.601 / Rec.709)25% / 27%
Relative luminance (WCAG)0.0631
Red / Green / Blue47 / 79 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
9.29:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.26: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 91.3 / -11 · As background with white / black text: Lc -95.6 / 12.7

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: #2f4f21;
  --color-brand-oklch: oklch(39.06% 0.0814 137.06);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(47 79 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2f4f21] text-[#2f4f21] border-[#2f4f21]">