#404239#404239

#404239 is a dark, near-neutral grey. Relative luminance 0.053; OKLCH L 37.4% C 0.015 H 117.3°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#404239
RGBrgb(64, 66, 57)
HSLhsl(73, 7%, 24%)
HSVhsv(73, 14%, 26%)
CMYKcmyk(3%, 0%, 13.6%, 74.1%)
CIE-LABlab(27.52, -2.77, 5.20)
CIE-LCHlch(27.52, 5.89, 118.06°)
OKLaboklab(37.42% -0.007 0.0135)
OKLCHoklch(37.42% 0.015 117.3)
XYZxyz(4.8010, 5.2818, 4.6367)
Luminance0.0528 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404239 #3B3942
analogous
#424039 #404239 #3C4239
triadic
#404239 #394042 #423940
tetradic
#404239 #394240 #3B3942 #42393C
square
#404239 #394240 #3B3942 #42393C
split-complementary
#404239 #393C42 #403942
monochromatic
#10100E #20211D #404239 #606355 #808472

Accessibility & contrast

On white

10.21
#404239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#404239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404239
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404239#FFFFFF#000000##FFFFFF
##4042391.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#434138
Deuteranopia (green-blind)
#434139
Tritanopia (blue-blind)
#41413F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #404239;
/* rgb */ color: rgb(64, 66, 57);
/* oklch */ color: oklch(37.4% 0.015 117.3);
Tailwind
colors: {
  custom: {
    50: '#74766f',
    500: '#404239',
    950: '#000000',
  },
}
SCSS
$custom: #404239;
$custom-light: #74766f;
$custom-dark: #000000;
JSON
{
  "hex": "#404239",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 57
  },
  "hsl": {
    "h": 73.333,
    "s": 7.317,
    "l": 24.118
  },
  "oklch": {
    "l": 0.3742,
    "c": 0.01518,
    "h": 117.3
  },
  "luminance": 0.05282
}

Semantic roles & 50–950 ramp

primary
#404239
secondary
#686671
accent
#77B084
background
#F7F7F6
surface
#EDEDEC
border
#C8C8C7
text
#080807
muted
#7B7B7A

Preview Lab

Preview with #404239

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#404239 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva