#404340

A color in the Black, Gray, White family

#404340 is a color in the Black, Gray, White family: RGB(64, 67, 64), HSL(120°, 2%, 26%), CMYK(4%, 0%, 4%, 74%). Closest named color: darkslategray. Contrast is 10.02:1 on white and 2.09:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#404340
RGBrgb(64 67 64)
RGB (legacy)rgb(64, 67, 64)
RGB %rgb(25% 26% 25%)
HSLhsl(120 2% 26%)
HSV / HSBhsv(120, 4%, 26%)
HWBhwb(120 25% 74%)
CMYKcmyk(4%, 0%, 4%, 74%)
CIELAB (D50)lab(28.05 -1.8 1.37)
LCHlch(28.05 2.26 142.71)
OKLaboklab(0.379 -0.0053 0.0036)
OKLCHoklch(0.379 0.0064 145.45)
Decimal4211520

Properties

Color ToneBlack, Gray, White
Closest named colordarkslategray ΔE 4.2
Closest web-safe color#333333
Hue120°
Saturation (HSL / HSV)2% / 4%
Lightness (HSL)26%
Brightness or Value (HSV)26%
Luminance (Rec.601 / Rec.709)26% / 26%
Relative luminance (WCAG)0.0547
Red / Green / Blue64 / 67 / 64

WCAG 2.2 Contrast Ratio

On White (#ffffff)
10.02:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.09: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 93.3 / -9.2 · As background with white / black text: Lc -97.4 / 10.6

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: #404340;
  --color-brand-oklch: oklch(37.9% 0.0064 145.45);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(64 67 64 / 50%); }
/* Tailwind CSS */
<div class="bg-[#404340] text-[#404340] border-[#404340]">