#331B1C#331B1C

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

Color values

HEX#331B1C
RGBrgb(51, 27, 28)
HSLhsl(358, 31%, 15%)
HSVhsv(358, 47%, 20%)
CMYKcmyk(0%, 47.1%, 45.1%, 80%)
CIE-LABlab(13.06, 12.03, 4.41)
CIE-LCHlch(13.06, 12.81, 20.13°)
OKLaboklab(25.51% 0.0364 0.0114)
OKLCHoklch(25.51% 0.038 17.4)
XYZxyz(1.9669, 1.5717, 1.2982)
Luminance0.0157 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B1C #1B3332
analogous
#331B28 #331B1C #33261B
triadic
#331B1C #1C331B #1B1C33
tetradic
#331B1C #28331B #1B3332 #261B33
square
#331B1C #28331B #1B3332 #261B33
split-complementary
#331B1C #1B3326 #1B2833
monochromatic
#140B0B #140B0B #331B1C #5B3032 #834548

Accessibility & contrast

On white

15.98
#331B1C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#331B1C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331B1C
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B1C#FFFFFF#000000##FFFFFF
##331B1C1.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#201F1C
Deuteranopia (green-blind)
#26231C
Tritanopia (blue-blind)
#37181B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #331b1c;
/* rgb */ color: rgb(51, 27, 28);
/* oklch */ color: oklch(25.5% 0.038 17.4);
Tailwind
colors: {
  custom: {
    50: '#6c5757',
    500: '#331b1c',
    950: '#000000',
  },
}
SCSS
$custom: #331b1c;
$custom-light: #6c5757;
$custom-dark: #000000;
JSON
{
  "hex": "#331b1c",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 28
  },
  "hsl": {
    "h": 357.5,
    "s": 30.769,
    "l": 15.294
  },
  "oklch": {
    "l": 0.25509,
    "c": 0.03817,
    "h": 17.4
  },
  "luminance": 0.01572
}

Semantic roles & 50–950 ramp

primary
#331B1C
secondary
#436766
accent
#C7C361
background
#F6F5F5
surface
#EBE9E9
border
#C6C5C5
text
#070303
muted
#7A7878

Preview Lab

Preview with #331B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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