#331B23#331B23

#331B23 is a dark, muted pink. Relative luminance 0.016; OKLCH L 25.8% C 0.040 H 358.8°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#331B23
RGBrgb(51, 27, 35)
HSLhsl(340, 31%, 15%)
HSVhsv(340, 47%, 20%)
CMYKcmyk(0%, 47.1%, 31.4%, 80%)
CIE-LABlab(13.29, 13.19, -0.38)
CIE-LCHlch(13.29, 13.19, 358.35°)
OKLaboklab(25.76% 0.0398 -0.0008)
OKLCHoklch(25.76% 0.04 358.8)
XYZxyz(2.0606, 1.6092, 1.7919)
Luminance0.0161 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B23 #1B332B
analogous
#331B2F #331B23 #331F1B
triadic
#331B23 #23331B #1B2333
tetradic
#331B23 #2F331B #1B332B #1F1B33
square
#331B23 #2F331B #1B332B #1F1B33
split-complementary
#331B23 #1B331F #1B2F33
monochromatic
#140B0E #140B0E #331B23 #5B303E #83455A

Accessibility & contrast

On white

15.89
#331B23 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331B23
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B23#FFFFFF#000000##FFFFFF
##331B231.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2023
Deuteranopia (green-blind)
#242422
Tritanopia (blue-blind)
#371A1E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #331b23;
/* rgb */ color: rgb(51, 27, 35);
/* oklch */ color: oklch(25.8% 0.040 358.8);
Tailwind
colors: {
  custom: {
    50: '#6b575d',
    500: '#331b23',
    950: '#000000',
  },
}
SCSS
$custom: #331b23;
$custom-light: #6b575d;
$custom-dark: #000000;
JSON
{
  "hex": "#331b23",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 35
  },
  "hsl": {
    "h": 340,
    "s": 30.769,
    "l": 15.294
  },
  "oklch": {
    "l": 0.2576,
    "c": 0.0398,
    "h": 358.8
  },
  "luminance": 0.01609
}

Semantic roles & 50–950 ramp

primary
#331B23
secondary
#43675B
accent
#C7A561
background
#F6F5F5
surface
#EBE9E9
border
#C6C5C5
text
#070304
muted
#7A7879

Preview Lab

Preview with #331B23

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

Preview Lab → · Contrast checker → · Palette generator →

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