#2A2F21

A color in the Green family

#2a2f21 is a color in the Green family: RGB(42, 47, 33), HSL(81°, 18%, 16%), CMYK(11%, 0%, 30%, 82%). Closest named color: darkslategray. Contrast is 13.75:1 on white and 1.53:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#2a2f21
RGBrgb(42 47 33)
RGB (legacy)rgb(42, 47, 33)
RGB %rgb(16% 18% 13%)
HSLhsl(81 18% 16%)
HSV / HSBhsv(81, 30%, 18%)
HWBhwb(81 13% 82%)
CMYKcmyk(11%, 0%, 30%, 82%)
CIELAB (D50)lab(18.56 -4.59 8.27)
LCHlch(18.56 9.46 119.04)
OKLaboklab(0.2957 -0.0141 0.021)
OKLCHoklch(0.2957 0.0253 123.9)
Decimal2764577

Properties

Color ToneGreen
Closest named colordarkslategray ΔE 11.4
Closest web-safe color#333333
Hue81°
Saturation (HSL / HSV)18% / 30%
Lightness (HSL)16%
Brightness or Value (HSV)18%
Luminance (Rec.601 / Rec.709)17% / 18%
Relative luminance (WCAG)0.0264
Red / Green / Blue42 / 47 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
13.75:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.53: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 100.3 / 0 · As background with white / black text: Lc -103.4 / 0

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