#404238#404238

#404238 is a dark, near-neutral yellow-green. Relative luminance 0.053; OKLCH L 37.4% C 0.017 H 116.4°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#404238
RGBrgb(64, 66, 56)
HSLhsl(72, 8%, 24%)
HSVhsv(72, 15%, 26%)
CMYKcmyk(3%, 0%, 15.2%, 74.1%)
CIE-LABlab(27.50, -2.97, 5.81)
CIE-LCHlch(27.50, 6.53, 117.09°)
OKLaboklab(37.39% -0.0075 0.015)
OKLCHoklch(37.39% 0.017 116.4)
XYZxyz(4.7763, 5.2720, 4.5066)
Luminance0.0527 (WCAG relative)
Temperatureneutral
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404238 #3A3842
analogous
#423F38 #404238 #3B4238
triadic
#404238 #384042 #423840
tetradic
#404238 #38423F #3A3842 #42383B
square
#404238 #38423F #3A3842 #42383B
split-complementary
#404238 #383B42 #3F3842
monochromatic
#10110E #20211C #404238 #606354 #808470

Accessibility & contrast

On white

10.22
#404238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#404238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404238
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404238#FFFFFF#000000##FFFFFF
##4042381.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #404238;
/* rgb */ color: rgb(64, 66, 56);
/* oklch */ color: oklch(37.4% 0.017 116.4);
Tailwind
colors: {
  custom: {
    50: '#74766e',
    500: '#404238',
    950: '#000000',
  },
}
SCSS
$custom: #404238;
$custom-light: #74766e;
$custom-dark: #000000;
JSON
{
  "hex": "#404238",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 56
  },
  "hsl": {
    "h": 72,
    "s": 8.197,
    "l": 23.922
  },
  "oklch": {
    "l": 0.37389,
    "c": 0.01679,
    "h": 116.4
  },
  "luminance": 0.05272
}

Semantic roles & 50–950 ramp

primary
#404238
secondary
#676571
accent
#77B182
background
#F7F7F6
surface
#EDEDEB
border
#C8C8C6
text
#080807
muted
#7B7B7A

Preview Lab

Preview with #404238

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

Preview Lab → · Contrast checker → · Palette generator →

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