#331F21#331F21

#331F21 is a dark, muted red. Relative luminance 0.018; OKLCH L 26.6% C 0.031 H 12.9°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#331F21
RGBrgb(51, 31, 33)
HSLhsl(354, 24%, 16%)
HSVhsv(354, 39%, 20%)
CMYKcmyk(0%, 39.2%, 35.3%, 80%)
CIE-LABlab(14.37, 10.08, 2.64)
CIE-LCHlch(14.37, 10.42, 14.66°)
OKLaboklab(26.56% 0.0306 0.007)
OKLCHoklch(26.56% 0.031 12.9)
XYZxyz(2.1298, 1.7937, 1.6726)
Luminance0.0179 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F21 #1F3331
analogous
#331F2B #331F21 #33271F
triadic
#331F21 #21331F #1F2133
tetradic
#331F21 #2B331F #1F3331 #271F33
square
#331F21 #2B331F #1F3331 #271F33
split-complementary
#331F21 #1F3327 #1F2B33
monochromatic
#130C0C #130C0C #331F21 #59363A #7F4D52

Accessibility & contrast

On white

15.45
#331F21 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#331F21 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F21
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F21#FFFFFF#000000##FFFFFF
##331F211.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222221
Deuteranopia (green-blind)
#272621
Tritanopia (blue-blind)
#371D20
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331f21;
/* rgb */ color: rgb(51, 31, 33);
/* oklch */ color: oklch(26.6% 0.031 12.9);
Tailwind
colors: {
  custom: {
    50: '#6b5a5c',
    500: '#331f21',
    950: '#000000',
  },
}
SCSS
$custom: #331f21;
$custom-light: #6b5a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#331f21",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 33
  },
  "hsl": {
    "h": 354,
    "s": 24.39,
    "l": 16.078
  },
  "oklch": {
    "l": 0.26563,
    "c": 0.03138,
    "h": 12.9
  },
  "luminance": 0.01794
}

Semantic roles & 50–950 ramp

primary
#331F21
secondary
#486663
accent
#C1B867
background
#F6F5F5
surface
#EBE9E9
border
#C6C5C5
text
#070404
muted
#7A7979

Preview Lab

Preview with #331F21

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

Preview Lab → · Contrast checker → · Palette generator →

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