#331F27#331F27

#331F27 is a dark, muted pink. Relative luminance 0.018; OKLCH L 26.8% C 0.034 H 354.0°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#331F27
RGBrgb(51, 31, 39)
HSLhsl(336, 24%, 16%)
HSVhsv(336, 39%, 20%)
CMYKcmyk(0%, 39.2%, 23.5%, 80%)
CIE-LABlab(14.57, 11.19, -1.39)
CIE-LCHlch(14.57, 11.27, 352.89°)
OKLaboklab(26.79% 0.0334 -0.0035)
OKLCHoklch(26.79% 0.034 354)
XYZxyz(2.2215, 1.8304, 2.1554)
Luminance0.0183 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F27 #1F332B
analogous
#331F31 #331F27 #33211F
triadic
#331F27 #27331F #1F2733
tetradic
#331F27 #31331F #1F332B #211F33
square
#331F27 #31331F #1F332B #211F33
split-complementary
#331F27 #1F3321 #1F3133
monochromatic
#130C0F #130C0F #331F27 #593644 #7F4D61

Accessibility & contrast

On white

15.37
#331F27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#331F27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F27
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F27#FFFFFF#000000##FFFFFF
##331F271.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212327
Deuteranopia (green-blind)
#262627
Tritanopia (blue-blind)
#361E22
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331f27;
/* rgb */ color: rgb(51, 31, 39);
/* oklch */ color: oklch(26.8% 0.034 354.0);
Tailwind
colors: {
  custom: {
    50: '#6b5a61',
    500: '#331f27',
    950: '#000000',
  },
}
SCSS
$custom: #331f27;
$custom-light: #6b5a61;
$custom-dark: #000000;
JSON
{
  "hex": "#331f27",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 39
  },
  "hsl": {
    "h": 336,
    "s": 24.39,
    "l": 16.078
  },
  "oklch": {
    "l": 0.26788,
    "c": 0.03362,
    "h": 354
  },
  "luminance": 0.0183
}

Semantic roles & 50–950 ramp

primary
#331F27
secondary
#48665A
accent
#C19D67
background
#F6F5F5
surface
#EBE9E9
border
#C6C5C5
text
#060405
muted
#7A7979

Preview Lab

Preview with #331F27

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

Preview Lab → · Contrast checker → · Palette generator →

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