#310B1F#310B1F

#310B1F is a very dark, moderate pink. Relative luminance 0.010; OKLCH L 22.4% C 0.067 H 351.3°. Best body text is #FFFFFF at 17.53:1 contrast (WCAG AA passes).

Color values

HEX#310B1F
RGBrgb(49, 11, 31)
HSLhsl(328, 63%, 12%)
HSVhsv(328, 78%, 19%)
CMYKcmyk(0%, 77.6%, 36.7%, 80.8%)
CIE-LABlab(8.92, 21.63, -3.91)
CIE-LCHlch(8.92, 21.97, 349.76°)
OKLaboklab(22.36% 0.0658 -0.0101)
OKLCHoklch(22.36% 0.067 351.3)
XYZxyz(1.6337, 0.9914, 1.4014)
Luminance0.0099 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B1F #0B311D
analogous
#300B31 #310B1F #310B0C
triadic
#310B1F #1F310B #0B1F31
tetradic
#310B1F #31300B #0B311D #0B0C31
square
#310B1F #31300B #0B311D #0B0C31
split-complementary
#310B1F #0C310B #0B3130
monochromatic
#190610 #190610 #310B1F #63163F #95215E

Accessibility & contrast

On white

17.53
#310B1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#310B1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310B1F
17.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B1F#FFFFFF#000000##FFFFFF
##310B1F1.0017.531.2017.53
#FFFFFF17.531.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111520
Deuteranopia (green-blind)
#1B1C1E
Tritanopia (blue-blind)
#350913
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310b1f;
/* rgb */ color: rgb(49, 11, 31);
/* oklch */ color: oklch(22.4% 0.067 351.3);
Tailwind
colors: {
  custom: {
    50: '#6b4d5a',
    500: '#310b1f',
    950: '#000000',
  },
}
SCSS
$custom: #310b1f;
$custom-light: #6b4d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#310b1f",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 31
  },
  "hsl": {
    "h": 328.421,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.22358,
    "c": 0.06661,
    "h": 351.3
  },
  "luminance": 0.00991
}

Semantic roles & 50–950 ramp

primary
#310B1F
secondary
#2A6E4A
accent
#E69041
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #310B1F

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

Preview Lab → · Contrast checker → · Palette generator →

#310B1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva