#31051C#31051C

#31051C is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.4% C 0.075 H 353.1°. Best body text is #FFFFFF at 17.96:1 contrast (WCAG AA passes).

Color values

HEX#31051C
RGBrgb(49, 5, 28)
HSLhsl(329, 81%, 11%)
HSVhsv(329, 90%, 19%)
CMYKcmyk(0%, 89.8%, 42.9%, 80.8%)
CIE-LABlab(7.64, 24.38, -3.52)
CIE-LCHlch(7.64, 24.63, 351.79°)
OKLaboklab(21.37% 0.0749 -0.009)
OKLCHoklch(21.37% 0.075 353.1)
XYZxyz(1.5306, 0.8455, 1.1810)
Luminance0.0084 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31051C #05311A
analogous
#300531 #31051C #310506
triadic
#31051C #1C3105 #051C31
tetradic
#31051C #313005 #05311A #050631
square
#31051C #313005 #05311A #050631
split-complementary
#31051C #063105 #053130
monochromatic
#1C0310 #1C0310 #31051C #690B3C #A0105B

Accessibility & contrast

On white

17.96
#31051C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#31051C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31051C
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31051C#FFFFFF#000000##FFFFFF
##31051C1.0017.961.1717.96
#FFFFFF17.961.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D121D
Deuteranopia (green-blind)
#191A1B
Tritanopia (blue-blind)
#36020F
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #31051c;
/* rgb */ color: rgb(49, 5, 28);
/* oklch */ color: oklch(21.4% 0.075 353.1);
Tailwind
colors: {
  custom: {
    50: '#6c4957',
    500: '#31051c',
    950: '#000000',
  },
}
SCSS
$custom: #31051c;
$custom-light: #6c4957;
$custom-dark: #000000;
JSON
{
  "hex": "#31051c",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 28
  },
  "hsl": {
    "h": 328.636,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21369,
    "c": 0.07543,
    "h": 353.1
  },
  "luminance": 0.00845
}

Semantic roles & 50–950 ramp

primary
#31051C
secondary
#1F7247
accent
#F88F30
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #31051C

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

Preview Lab → · Contrast checker → · Palette generator →

#31051C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva