#331A1B#331A1B

#331A1B is a dark, muted red. Relative luminance 0.015; OKLCH L 25.3% C 0.040 H 17.7°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#331A1B
RGBrgb(51, 26, 27)
HSLhsl(358, 32%, 15%)
HSVhsv(358, 49%, 20%)
CMYKcmyk(0%, 49%, 47.1%, 80%)
CIE-LABlab(12.75, 12.56, 4.70)
CIE-LCHlch(12.75, 13.41, 20.53°)
OKLaboklab(25.26% 0.038 0.0121)
OKLCHoklch(25.26% 0.04 17.7)
XYZxyz(1.9326, 1.5219, 1.2287)
Luminance0.0152 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A1B #1A3332
analogous
#331A27 #331A1B #33251A
triadic
#331A1B #1B331A #1A1B33
tetradic
#331A1B #27331A #1A3332 #251A33
square
#331A1B #27331A #1A3332 #251A33
split-complementary
#331A1B #1A3325 #1A2733
monochromatic
#140A0B #140A0B #331A1B #5C2F30 #844346

Accessibility & contrast

On white

16.10
#331A1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#331A1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A1B
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A1B#FFFFFF#000000##FFFFFF
##331A1B1.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F1E1B
Deuteranopia (green-blind)
#25231B
Tritanopia (blue-blind)
#37171A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #331a1b;
/* rgb */ color: rgb(51, 26, 27);
/* oklch */ color: oklch(25.3% 0.040 17.7);
Tailwind
colors: {
  custom: {
    50: '#6c5757',
    500: '#331a1b',
    950: '#000000',
  },
}
SCSS
$custom: #331a1b;
$custom-light: #6c5757;
$custom-dark: #000000;
JSON
{
  "hex": "#331a1b",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 27
  },
  "hsl": {
    "h": 357.6,
    "s": 32.468,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25263,
    "c": 0.03989,
    "h": 17.7
  },
  "luminance": 0.01522
}

Semantic roles & 50–950 ramp

primary
#331A1B
secondary
#416866
accent
#C9C45F
background
#F6F5F5
surface
#EBE9E9
border
#C6C5C5
text
#070303
muted
#7A7878

Preview Lab

Preview with #331A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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