#31372F#31372F

#31372F is a dark, near-neutral grey. Relative luminance 0.036; OKLCH L 32.8% C 0.016 H 137.8°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#31372F
RGBrgb(49, 55, 47)
HSLhsl(105, 8%, 20%)
HSVhsv(105, 15%, 22%)
CMYKcmyk(10.9%, 0%, 14.5%, 78.4%)
CIE-LABlab(22.27, -4.42, 4.16)
CIE-LCHlch(22.27, 6.07, 136.74°)
OKLaboklab(32.83% -0.0119 0.0108)
OKLCHoklch(32.83% 0.016 137.8)
XYZxyz(3.1458, 3.5906, 3.2161)
Luminance0.0359 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31372F #352F37
analogous
#35372F #31372F #2F3731
triadic
#31372F #2F3137 #372F31
tetradic
#31372F #2F3537 #352F37 #37312F
square
#31372F #2F3537 #352F37 #37312F
split-complementary
#31372F #312F37 #372F35
monochromatic
#0F100E #141613 #31372F #4E584B #6C7967

Accessibility & contrast

On white

12.22
#31372F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#31372F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31372F
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31372F#FFFFFF#000000##FFFFFF
##31372F1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38362F
Deuteranopia (green-blind)
#37352F
Tritanopia (blue-blind)
#313635
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #31372f;
/* rgb */ color: rgb(49, 55, 47);
/* oklch */ color: oklch(32.8% 0.016 137.8);
Tailwind
colors: {
  custom: {
    50: '#696d67',
    500: '#31372f',
    950: '#000000',
  },
}
SCSS
$custom: #31372f;
$custom-light: #696d67;
$custom-dark: #000000;
JSON
{
  "hex": "#31372f",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 47
  },
  "hsl": {
    "h": 105,
    "s": 7.843,
    "l": 20
  },
  "oklch": {
    "l": 0.32829,
    "c": 0.01608,
    "h": 137.8
  },
  "luminance": 0.03591
}

Semantic roles & 50–950 ramp

primary
#31372F
secondary
#645C66
accent
#77B1A2
background
#F6F6F6
surface
#EBEBEB
border
#C6C6C6
text
#060706
muted
#7A7A7A

Preview Lab

Preview with #31372F

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

Preview Lab → · Contrast checker → · Palette generator →

#31372F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva