#383840#383840

#383840 is a dark, near-neutral grey. Relative luminance 0.040; OKLCH L 34.4% C 0.014 H 285.7°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#383840
RGBrgb(56, 56, 64)
HSLhsl(240, 7%, 24%)
HSVhsv(240, 13%, 25%)
CMYKcmyk(12.5%, 12.5%, 0%, 74.9%)
CIE-LABlab(23.80, 1.93, -4.95)
CIE-LCHlch(23.80, 5.31, 291.32°)
OKLaboklab(34.38% 0.0037 -0.0133)
OKLCHoklch(34.38% 0.014 285.7)
XYZxyz(3.9703, 4.0392, 5.4200)
Luminance0.0404 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#383840 #404038
analogous
#383C40 #383840 #3C3840
triadic
#383840 #403838 #384038
tetradic
#383840 #40383C #404038 #38403C
square
#383840 #40383C #404038 #38403C
split-complementary
#383840 #403C38 #3C4038
monochromatic
#0E0E10 #1B1B1F #383840 #555561 #717181

Accessibility & contrast

On white

11.62
#383840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#383840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #383840
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##383840#FFFFFF#000000##FFFFFF
##3838401.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363940
Deuteranopia (green-blind)
#363840
Tritanopia (blue-blind)
#36393B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #383840;
/* rgb */ color: rgb(56, 56, 64);
/* oklch */ color: oklch(34.4% 0.014 285.7);
Tailwind
colors: {
  custom: {
    50: '#6e6e74',
    500: '#383840',
    950: '#000000',
  },
}
SCSS
$custom: #383840;
$custom-light: #6e6e74;
$custom-dark: #000000;
JSON
{
  "hex": "#383840",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 64
  },
  "hsl": {
    "h": 240,
    "s": 6.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.34382,
    "c": 0.01385,
    "h": 285.7
  },
  "luminance": 0.04039
}

Semantic roles & 50–950 ramp

primary
#383840
secondary
#6F6F65
accent
#B078B0
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#070708
muted
#7A7A7B

Preview Lab

Preview with #383840

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

Preview Lab → · Contrast checker → · Palette generator →

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