#310D1F#310D1F

#310D1F is a very dark, moderate pink. Relative luminance 0.010; OKLCH L 22.7% C 0.063 H 352.2°. Best body text is #FFFFFF at 17.38:1 contrast (WCAG AA passes).

Color values

HEX#310D1F
RGBrgb(49, 13, 31)
HSLhsl(330, 58%, 12%)
HSVhsv(330, 73%, 19%)
CMYKcmyk(0%, 73.5%, 36.7%, 80.8%)
CIE-LABlab(9.32, 20.54, -3.31)
CIE-LCHlch(9.32, 20.80, 350.85°)
OKLaboklab(22.65% 0.0625 -0.0085)
OKLCHoklch(22.65% 0.063 352.2)
XYZxyz(1.6579, 1.0399, 1.4095)
Luminance0.0104 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D1F #0D311F
analogous
#310D31 #310D1F #310D0D
triadic
#310D1F #1F310D #0D1F31
tetradic
#310D1F #31310D #0D311F #0D0D31
square
#310D1F #31310D #0D311F #0D0D31
split-complementary
#310D1F #0D310D #0D3131
monochromatic
#18060F #18060F #310D1F #611A3E #92275C

Accessibility & contrast

On white

17.38
#310D1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#310D1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310D1F
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D1F#FFFFFF#000000##FFFFFF
##310D1F1.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121620
Deuteranopia (green-blind)
#1C1D1E
Tritanopia (blue-blind)
#350B14
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310d1f;
/* rgb */ color: rgb(49, 13, 31);
/* oklch */ color: oklch(22.7% 0.063 352.2);
Tailwind
colors: {
  custom: {
    50: '#6b4e5a',
    500: '#310d1f',
    950: '#000000',
  },
}
SCSS
$custom: #310d1f;
$custom-light: #6b4e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#310d1f",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 31
  },
  "hsl": {
    "h": 330,
    "s": 58.065,
    "l": 12.157
  },
  "oklch": {
    "l": 0.22654,
    "c": 0.06304,
    "h": 352.2
  },
  "luminance": 0.0104
}

Semantic roles & 50–950 ramp

primary
#310D1F
secondary
#2E6C4D
accent
#E19447
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #310D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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