#331D1F#331D1F

#331D1F is a dark, muted red. Relative luminance 0.017; OKLCH L 26.0% C 0.035 H 13.8°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#331D1F
RGBrgb(51, 29, 31)
HSLhsl(355, 28%, 16%)
HSVhsv(355, 43%, 20%)
CMYKcmyk(0%, 43.1%, 39.2%, 80%)
CIE-LABlab(13.72, 11.13, 3.16)
CIE-LCHlch(13.72, 11.57, 15.86°)
OKLaboklab(26.05% 0.0338 0.0083)
OKLCHoklch(26.05% 0.035 13.8)
XYZxyz(2.0520, 1.6816, 1.5126)
Luminance0.0168 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D1F #1D3331
analogous
#331D2A #331D1F #33261D
triadic
#331D1F #1F331D #1D1F33
tetradic
#331D1F #2A331D #1D3331 #261D33
square
#331D1F #2A331D #1D3331 #261D33
split-complementary
#331D1F #1D3326 #1D2A33
monochromatic
#140B0C #140B0C #331D1F #5A3337 #81494E

Accessibility & contrast

On white

15.72
#331D1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#331D1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331D1F
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D1F#FFFFFF#000000##FFFFFF
##331D1F1.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21201F
Deuteranopia (green-blind)
#26251F
Tritanopia (blue-blind)
#371B1E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331d1f;
/* rgb */ color: rgb(51, 29, 31);
/* oklch */ color: oklch(26.0% 0.035 13.8);
Tailwind
colors: {
  custom: {
    50: '#6b595a',
    500: '#331d1f',
    950: '#000000',
  },
}
SCSS
$custom: #331d1f;
$custom-light: #6b595a;
$custom-dark: #000000;
JSON
{
  "hex": "#331d1f",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 31
  },
  "hsl": {
    "h": 354.545,
    "s": 27.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26046,
    "c": 0.03476,
    "h": 13.8
  },
  "luminance": 0.01681
}

Semantic roles & 50–950 ramp

primary
#331D1F
secondary
#456663
accent
#C4BB64
background
#F6F5F5
surface
#EBE9E9
border
#C6C5C5
text
#070303
muted
#7A7878

Preview Lab

Preview with #331D1F

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

Preview Lab → · Contrast checker → · Palette generator →

#331D1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva