#331B17#331B17

#331B17 is a dark, muted red. Relative luminance 0.015; OKLCH L 25.4% C 0.039 H 30.2°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#331B17
RGBrgb(51, 27, 23)
HSLhsl(9, 38%, 15%)
HSVhsv(9, 55%, 20%)
CMYKcmyk(0%, 47.1%, 54.9%, 80%)
CIE-LABlab(12.92, 11.32, 7.86)
CIE-LCHlch(12.92, 13.78, 34.75°)
OKLaboklab(25.36% 0.0339 0.0197)
OKLCHoklch(25.36% 0.039 30.2)
XYZxyz(1.9119, 1.5497, 1.0089)
Luminance0.0155 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B17 #172F33
analogous
#331721 #331B17 #332917
triadic
#331B17 #17331B #1B1733
tetradic
#331B17 #213317 #172F33 #291733
square
#331B17 #213317 #172F33 #291733
split-complementary
#331B17 #173329 #172133
monochromatic
#150B0A #150B0A #331B17 #5D312A #87483D

Accessibility & contrast

On white

16.03
#331B17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331B17
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B17#FFFFFF#000000##FFFFFF
##331B171.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#201E17
Deuteranopia (green-blind)
#262317
Tritanopia (blue-blind)
#38181A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #331b17;
/* rgb */ color: rgb(51, 27, 23);
/* oklch */ color: oklch(25.4% 0.039 30.2);
Tailwind
colors: {
  custom: {
    50: '#6c5753',
    500: '#331b17',
    950: '#000000',
  },
}
SCSS
$custom: #331b17;
$custom-light: #6c5753;
$custom-dark: #000000;
JSON
{
  "hex": "#331b17",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 23
  },
  "hsl": {
    "h": 8.571,
    "s": 37.838,
    "l": 14.51
  },
  "oklch": {
    "l": 0.25361,
    "c": 0.0392,
    "h": 30.2
  },
  "luminance": 0.0155
}

Semantic roles & 50–950 ramp

primary
#331B17
secondary
#3D6369
accent
#BDCE5A
background
#F6F5F4
surface
#EBE9E7
border
#C6C5C3
text
#070302
muted
#7A7878

Preview Lab

Preview with #331B17

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

Preview Lab → · Contrast checker → · Palette generator →

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