#331F2F#331F2F

#331F2F is a dark, muted pink. Relative luminance 0.019; OKLCH L 27.1% C 0.041 H 334.1°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#331F2F
RGBrgb(51, 31, 47)
HSLhsl(312, 24%, 16%)
HSVhsv(312, 39%, 20%)
CMYKcmyk(0%, 39.2%, 7.8%, 80%)
CIE-LABlab(14.89, 12.87, -6.66)
CIE-LCHlch(14.89, 14.49, 332.65°)
OKLaboklab(27.14% 0.0368 -0.0179)
OKLCHoklch(27.14% 0.041 334.1)
XYZxyz(2.3683, 1.8891, 2.9287)
Luminance0.0189 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F2F #1F3323
analogous
#2D1F33 #331F2F #331F25
triadic
#331F2F #2F331F #1F2F33
tetradic
#331F2F #332D1F #1F3323 #1F2533
square
#331F2F #332D1F #1F3323 #1F2533
split-complementary
#331F2F #25331F #1F332D
monochromatic
#130C12 #130C12 #331F2F #593652 #7F4D75

Accessibility & contrast

On white

15.24
#331F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#331F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F2F
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F2F#FFFFFF#000000##FFFFFF
##331F2F1.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2430
Deuteranopia (green-blind)
#24272E
Tritanopia (blue-blind)
#352025
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331f2f;
/* rgb */ color: rgb(51, 31, 47);
/* oklch */ color: oklch(27.1% 0.041 334.1);
Tailwind
colors: {
  custom: {
    50: '#6b5b67',
    500: '#331f2f',
    950: '#000000',
  },
}
SCSS
$custom: #331f2f;
$custom-light: #6b5b67;
$custom-dark: #000000;
JSON
{
  "hex": "#331f2f",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 47
  },
  "hsl": {
    "h": 312,
    "s": 24.39,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27142,
    "c": 0.04088,
    "h": 334.1
  },
  "luminance": 0.01889
}

Semantic roles & 50–950 ramp

primary
#331F2F
secondary
#48664E
accent
#C17967
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060406
muted
#7A797A

Preview Lab

Preview with #331F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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