#31051F#31051F

#31051F is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.5% C 0.077 H 349.0°. Best body text is #FFFFFF at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#31051F
RGBrgb(49, 5, 31)
HSLhsl(325, 81%, 11%)
HSVhsv(325, 90%, 19%)
CMYKcmyk(0%, 89.8%, 36.7%, 80.8%)
CIE-LABlab(7.77, 24.82, -5.64)
CIE-LCHlch(7.77, 25.45, 347.20°)
OKLaboklab(21.52% 0.0759 -0.0148)
OKLCHoklch(21.52% 0.077 349)
XYZxyz(1.5683, 0.8606, 1.3796)
Luminance0.0086 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31051F #053117
analogous
#2D0531 #31051F #310509
triadic
#31051F #1F3105 #051F31
tetradic
#31051F #312D05 #053117 #050931
square
#31051F #312D05 #053117 #050931
split-complementary
#31051F #093105 #05312D
monochromatic
#1C0312 #1C0312 #31051F #690B42 #A01065

Accessibility & contrast

On white

17.92
#31051F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31051F
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31051F#FFFFFF#000000##FFFFFF
##31051F1.0017.921.1717.92
#FFFFFF17.921.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1220
Deuteranopia (green-blind)
#191A1E
Tritanopia (blue-blind)
#350310
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #31051f;
/* rgb */ color: rgb(49, 5, 31);
/* oklch */ color: oklch(21.5% 0.077 349.0);
Tailwind
colors: {
  custom: {
    50: '#6c495a',
    500: '#31051f',
    950: '#000000',
  },
}
SCSS
$custom: #31051f;
$custom-light: #6c495a;
$custom-dark: #000000;
JSON
{
  "hex": "#31051f",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 31
  },
  "hsl": {
    "h": 324.545,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21517,
    "c": 0.07728,
    "h": 349
  },
  "luminance": 0.0086
}

Semantic roles & 50–950 ramp

primary
#31051F
secondary
#1F7241
accent
#F88230
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #31051F

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

Preview Lab → · Contrast checker → · Palette generator →

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