#31051B#31051B

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

Color values

HEX#31051B
RGBrgb(49, 5, 27)
HSLhsl(330, 81%, 11%)
HSVhsv(330, 90%, 19%)
CMYKcmyk(0%, 89.8%, 44.9%, 80.8%)
CIE-LABlab(7.59, 24.24, -2.80)
CIE-LCHlch(7.59, 24.40, 353.40°)
OKLaboklab(21.32% 0.0745 -0.0071)
OKLCHoklch(21.32% 0.075 354.5)
XYZxyz(1.5188, 0.8408, 1.1190)
Luminance0.0084 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31051B #05311B
analogous
#310531 #31051B #310505
triadic
#31051B #1B3105 #051B31
tetradic
#31051B #313105 #05311B #050531
square
#31051B #313105 #05311B #050531
split-complementary
#31051B #053105 #053131
monochromatic
#1C030F #1C030F #31051B #690B3A #A01058

Accessibility & contrast

On white

17.98
#31051B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31051B
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31051B#FFFFFF#000000##FFFFFF
##31051B1.0017.981.1717.98
#FFFFFF17.981.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D111C
Deuteranopia (green-blind)
#1A1A1A
Tritanopia (blue-blind)
#36020E
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #31051b;
/* rgb */ color: rgb(49, 5, 27);
/* oklch */ color: oklch(21.3% 0.075 354.5);
Tailwind
colors: {
  custom: {
    50: '#6c4957',
    500: '#31051b',
    950: '#000000',
  },
}
SCSS
$custom: #31051b;
$custom-light: #6c4957;
$custom-dark: #000000;
JSON
{
  "hex": "#31051b",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 27
  },
  "hsl": {
    "h": 330,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21323,
    "c": 0.07488,
    "h": 354.5
  },
  "luminance": 0.00841
}

Semantic roles & 50–950 ramp

primary
#31051B
secondary
#1F7249
accent
#F89430
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #31051B

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

Preview Lab → · Contrast checker → · Palette generator →

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