#40423E#40423E

#40423E is a dark, near-neutral grey. Relative luminance 0.053; OKLCH L 37.6% C 0.007 H 128.7°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#40423E
RGBrgb(64, 66, 62)
HSLhsl(90, 3%, 25%)
HSVhsv(90, 6%, 26%)
CMYKcmyk(3%, 0%, 6.1%, 74.1%)
CIE-LABlab(27.67, -1.72, 2.14)
CIE-LCHlch(27.67, 2.75, 128.84°)
OKLaboklab(37.58% -0.0045 0.0056)
OKLCHoklch(37.58% 0.007 128.7)
XYZxyz(4.9319, 5.3342, 5.3263)
Luminance0.0533 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40423E #403E42
analogous
#42423E #40423E #3E423E
triadic
#40423E #3E4042 #423E40
tetradic
#40423E #3E4242 #403E42 #423E3E
square
#40423E #3E4242 #403E42 #423E3E
split-complementary
#40423E #3E3E42 #423E42
monochromatic
#0F100F #212220 #40423E #5F625C #7D8179

Accessibility & contrast

On white

10.16
#40423E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#40423E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40423E
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40423E#FFFFFF#000000##FFFFFF
##40423E1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#42413E
Deuteranopia (green-blind)
#42413E
Tritanopia (blue-blind)
#404241
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #40423e;
/* rgb */ color: rgb(64, 66, 62);
/* oklch */ color: oklch(37.6% 0.007 128.7);
Tailwind
colors: {
  custom: {
    50: '#747673',
    500: '#40423e',
    950: '#000000',
  },
}
SCSS
$custom: #40423e;
$custom-light: #747673;
$custom-dark: #000000;
JSON
{
  "hex": "#40423e",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 62
  },
  "hsl": {
    "h": 90,
    "s": 3.125,
    "l": 25.098
  },
  "oklch": {
    "l": 0.3758,
    "c": 0.0072,
    "h": 128.7
  },
  "luminance": 0.05334
}

Semantic roles & 50–950 ramp

primary
#40423E
secondary
#6E6B70
accent
#7BAC94
background
#F7F7F6
surface
#EDEDEC
border
#C8C8C7
text
#080808
muted
#7B7B7B

Preview Lab

Preview with #40423E

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

Preview Lab → · Contrast checker → · Palette generator →

#40423E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva