#331F1B#331F1B

#331F1B is a dark, muted red. Relative luminance 0.018; OKLCH L 26.4% C 0.032 H 31.8°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#331F1B
RGBrgb(51, 31, 27)
HSLhsl(10, 31%, 15%)
HSVhsv(10, 47%, 20%)
CMYKcmyk(0%, 39.2%, 47.1%, 80%)
CIE-LABlab(14.19, 9.11, 6.71)
CIE-LCHlch(14.19, 11.32, 36.36°)
OKLaboklab(26.37% 0.0276 0.0171)
OKLCHoklch(26.37% 0.032 31.8)
XYZxyz(2.0531, 1.7631, 1.2689)
Luminance0.0176 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F1B #1B2F33
analogous
#331B23 #331F1B #332B1B
triadic
#331F1B #1B331F #1F1B33
tetradic
#331F1B #23331B #1B2F33 #2B1B33
square
#331F1B #23331B #1B2F33 #2B1B33
split-complementary
#331F1B #1B332B #1B2333
monochromatic
#140C0B #140C0B #331F1B #5B3730 #835045

Accessibility & contrast

On white

15.53
#331F1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#331F1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F1B
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F1B#FFFFFF#000000##FFFFFF
##331F1B1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23221B
Deuteranopia (green-blind)
#28261B
Tritanopia (blue-blind)
#371C1E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331f1b;
/* rgb */ color: rgb(51, 31, 27);
/* oklch */ color: oklch(26.4% 0.032 31.8);
Tailwind
colors: {
  custom: {
    50: '#6c5a57',
    500: '#331f1b',
    950: '#000000',
  },
}
SCSS
$custom: #331f1b;
$custom-light: #6c5a57;
$custom-dark: #000000;
JSON
{
  "hex": "#331f1b",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 27
  },
  "hsl": {
    "h": 10,
    "s": 30.769,
    "l": 15.294
  },
  "oklch": {
    "l": 0.26372,
    "c": 0.03241,
    "h": 31.8
  },
  "luminance": 0.01763
}

Semantic roles & 50–950 ramp

primary
#331F1B
secondary
#436167
accent
#B6C761
background
#F6F5F5
surface
#EBE9E9
border
#C6C5C5
text
#070403
muted
#7A7978

Preview Lab

Preview with #331F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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