#403A42#403A42

#403A42 is a dark, near-neutral grey. Relative luminance 0.045; OKLCH L 35.8% C 0.016 H 317.7°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#403A42
RGBrgb(64, 58, 66)
HSLhsl(285, 6%, 24%)
HSVhsv(285, 12%, 26%)
CMYKcmyk(3%, 12.1%, 0%, 74.1%)
CIE-LABlab(25.29, 4.38, -3.98)
CIE-LCHlch(25.29, 5.92, 317.75°)
OKLaboklab(35.76% 0.0117 -0.0106)
OKLCHoklch(35.76% 0.016 317.7)
XYZxyz(4.6106, 4.5095, 5.7807)
Luminance0.0451 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A42 #3C423A
analogous
#3C3A42 #403A42 #423A40
triadic
#403A42 #42403A #3A4240
tetradic
#403A42 #423C3A #3C423A #3A4042
square
#403A42 #423C3A #3C423A #3A4042
split-complementary
#403A42 #40423A #3A423C
monochromatic
#100E10 #201D21 #403A42 #605763 #7F7383

Accessibility & contrast

On white

11.04
#403A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#403A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A42
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A42#FFFFFF#000000##FFFFFF
##403A421.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393C42
Deuteranopia (green-blind)
#3A3C42
Tritanopia (blue-blind)
#403B3D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #403a42;
/* rgb */ color: rgb(64, 58, 66);
/* oklch */ color: oklch(35.8% 0.016 317.7);
Tailwind
colors: {
  custom: {
    50: '#747076',
    500: '#403a42',
    950: '#000000',
  },
}
SCSS
$custom: #403a42;
$custom-light: #747076;
$custom-dark: #000000;
JSON
{
  "hex": "#403a42",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 66
  },
  "hsl": {
    "h": 285,
    "s": 6.452,
    "l": 24.314
  },
  "oklch": {
    "l": 0.3576,
    "c": 0.01579,
    "h": 317.7
  },
  "luminance": 0.04509
}

Semantic roles & 50–950 ramp

primary
#403A42
secondary
#697167
accent
#B07886
background
#F7F6F7
surface
#EDECED
border
#C8C7C8
text
#080708
muted
#7B7A7B

Preview Lab

Preview with #403A42

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

Preview Lab → · Contrast checker → · Palette generator →

#403A42 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva