#2A2C2A

A color in the Black, Gray, White family

#2a2c2a is a color in the Black, Gray, White family: RGB(42, 44, 42), HSL(120°, 2%, 17%), CMYK(5%, 0%, 5%, 83%). Closest named color: darkslategray. Contrast is 14.07:1 on white and 1.49:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#2a2c2a
RGBrgb(42 44 42)
RGB (legacy)rgb(42, 44, 42)
RGB %rgb(16% 17% 16%)
HSLhsl(120 2% 17%)
HSV / HSBhsv(120, 5%, 17%)
HWBhwb(120 16% 83%)
CMYKcmyk(5%, 0%, 5%, 83%)
CIELAB (D50)lab(17.74 -1.28 0.98)
LCHlch(17.74 1.61 142.73)
OKLaboklab(0.2904 -0.0038 0.0026)
OKLCHoklch(0.2904 0.0046 145.46)
Decimal2763818

Properties

Color ToneBlack, Gray, White
Closest named colordarkslategray ΔE 11.8
Closest web-safe color#333333
Hue120°
Saturation (HSL / HSV)2% / 5%
Lightness (HSL)17%
Brightness or Value (HSV)17%
Luminance (Rec.601 / Rec.709)17% / 17%
Relative luminance (WCAG)0.0246
Red / Green / Blue42 / 44 / 42

WCAG 2.2 Contrast Ratio

On White (#ffffff)
14.07:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.49: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.8 / 0 · As background with white / black text: Lc -103.8 / 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: #2a2c2a;
  --color-brand-oklch: oklch(29.04% 0.0046 145.46);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(42 44 42 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2a2c2a] text-[#2a2c2a] border-[#2a2c2a]">