#331B21#331B21

#331B21 is a dark, muted red. Relative luminance 0.016; OKLCH L 25.7% C 0.039 H 4.0°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#331B21
RGBrgb(51, 27, 33)
HSLhsl(345, 31%, 15%)
HSVhsv(345, 47%, 20%)
CMYKcmyk(0%, 47.1%, 35.3%, 80%)
CIE-LABlab(13.22, 12.84, 0.98)
CIE-LCHlch(13.22, 12.87, 4.37°)
OKLaboklab(25.68% 0.0389 0.0027)
OKLCHoklch(25.68% 0.039 4)
XYZxyz(2.0318, 1.5976, 1.6399)
Luminance0.0160 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B21 #1B332D
analogous
#331B2D #331B21 #33211B
triadic
#331B21 #21331B #1B2133
tetradic
#331B21 #2D331B #1B332D #211B33
square
#331B21 #2D331B #1B332D #211B33
split-complementary
#331B21 #1B3321 #1B2D33
monochromatic
#140B0D #140B0D #331B21 #5B303B #834555

Accessibility & contrast

On white

15.92
#331B21 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#331B21 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331B21
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B21#FFFFFF#000000##FFFFFF
##331B211.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F1F21
Deuteranopia (green-blind)
#252420
Tritanopia (blue-blind)
#37191D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #331b21;
/* rgb */ color: rgb(51, 27, 33);
/* oklch */ color: oklch(25.7% 0.039 4.0);
Tailwind
colors: {
  custom: {
    50: '#6b575c',
    500: '#331b21',
    950: '#000000',
  },
}
SCSS
$custom: #331b21;
$custom-light: #6b575c;
$custom-dark: #000000;
JSON
{
  "hex": "#331b21",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 33
  },
  "hsl": {
    "h": 345,
    "s": 30.769,
    "l": 15.294
  },
  "oklch": {
    "l": 0.25683,
    "c": 0.03896,
    "h": 4
  },
  "luminance": 0.01597
}

Semantic roles & 50–950 ramp

primary
#331B21
secondary
#43675E
accent
#C7AD61
background
#F6F5F5
surface
#EBE9E9
border
#C6C5C5
text
#070304
muted
#7A7879

Preview Lab

Preview with #331B21

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

Preview Lab → · Contrast checker → · Palette generator →

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