#331B1F#331B1F

#331B1F is a dark, muted red. Relative luminance 0.016; OKLCH L 25.6% C 0.038 H 9.4°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#331B1F
RGBrgb(51, 27, 31)
HSLhsl(350, 31%, 15%)
HSVhsv(350, 47%, 20%)
CMYKcmyk(0%, 47.1%, 39.2%, 80%)
CIE-LABlab(13.15, 12.50, 2.35)
CIE-LCHlch(13.15, 12.72, 10.64°)
OKLaboklab(25.61% 0.0379 0.0063)
OKLCHoklch(25.61% 0.038 9.4)
XYZxyz(2.0046, 1.5868, 1.4968)
Luminance0.0159 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B1F #1B332F
analogous
#331B2B #331B1F #33231B
triadic
#331B1F #1F331B #1B1F33
tetradic
#331B1F #2B331B #1B332F #231B33
square
#331B1F #2B331B #1B332F #231B33
split-complementary
#331B1F #1B3323 #1B2B33
monochromatic
#140B0C #140B0C #331B1F #5B3037 #834550

Accessibility & contrast

On white

15.94
#331B1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331B1F
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B1F#FFFFFF#000000##FFFFFF
##331B1F1.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F1F1F
Deuteranopia (green-blind)
#25241F
Tritanopia (blue-blind)
#37191C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #331b1f;
/* rgb */ color: rgb(51, 27, 31);
/* oklch */ color: oklch(25.6% 0.038 9.4);
Tailwind
colors: {
  custom: {
    50: '#6c575a',
    500: '#331b1f',
    950: '#000000',
  },
}
SCSS
$custom: #331b1f;
$custom-light: #6c575a;
$custom-dark: #000000;
JSON
{
  "hex": "#331b1f",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 31
  },
  "hsl": {
    "h": 350,
    "s": 30.769,
    "l": 15.294
  },
  "oklch": {
    "l": 0.25611,
    "c": 0.03841,
    "h": 9.4
  },
  "luminance": 0.01587
}

Semantic roles & 50–950 ramp

primary
#331B1F
secondary
#436761
accent
#C7B661
background
#F6F5F5
surface
#EBE9E9
border
#C6C5C5
text
#070303
muted
#7A7878

Preview Lab

Preview with #331B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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