#3A4240#3A4240

#3A4240 is a dark, near-neutral grey. Relative luminance 0.052; OKLCH L 37.1% C 0.011 H 179.0°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#3A4240
RGBrgb(58, 66, 64)
HSLhsl(165, 6%, 24%)
HSVhsv(165, 12%, 26%)
CMYKcmyk(12.1%, 0%, 3%, 74.1%)
CIE-LABlab(27.20, -3.77, 0.10)
CIE-LCHlch(27.20, 3.77, 178.54°)
OKLaboklab(37.1% -0.0111 0.0002)
OKLCHoklch(37.1% 0.011 179)
XYZxyz(4.6183, 5.1661, 5.6033)
Luminance0.0517 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4240 #423A3C
analogous
#3A423C #3A4240 #3A4042
triadic
#3A4240 #403A42 #42403A
tetradic
#3A4240 #3C3A42 #423A3C #40423A
square
#3A4240 #3C3A42 #423A3C #40423A
split-complementary
#3A4240 #423A40 #423C3A
monochromatic
#0E1010 #1D2120 #3A4240 #576360 #73837F

Accessibility & contrast

On white

10.33
#3A4240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#3A4240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4240
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4240#FFFFFF#000000##FFFFFF
##3A42401.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#414140
Deuteranopia (green-blind)
#404040
Tritanopia (blue-blind)
#384241
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3a4240;
/* rgb */ color: rgb(58, 66, 64);
/* oklch */ color: oklch(37.1% 0.011 179.0);
Tailwind
colors: {
  custom: {
    50: '#707674',
    500: '#3a4240',
    950: '#000000',
  },
}
SCSS
$custom: #3a4240;
$custom-light: #707674;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4240",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 64
  },
  "hsl": {
    "h": 165,
    "s": 6.452,
    "l": 24.314
  },
  "oklch": {
    "l": 0.37103,
    "c": 0.0111,
    "h": 179
  },
  "luminance": 0.05166
}

Semantic roles & 50–950 ramp

primary
#3A4240
secondary
#716769
accent
#7886B0
background
#F6F7F7
surface
#ECEDED
border
#C7C8C8
text
#070808
muted
#7A7B7B

Preview Lab

Preview with #3A4240

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

Preview Lab → · Contrast checker → · Palette generator →

#3A4240 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva