#310A1F#310A1F

#310A1F is a very dark, moderate pink. Relative luminance 0.010; OKLCH L 22.2% C 0.068 H 350.8°. Best body text is #FFFFFF at 17.59:1 contrast (WCAG AA passes).

Color values

HEX#310A1F
RGBrgb(49, 10, 31)
HSLhsl(328, 66%, 12%)
HSVhsv(328, 80%, 19%)
CMYKcmyk(0%, 79.6%, 36.7%, 80.8%)
CIE-LABlab(8.73, 22.14, -4.19)
CIE-LCHlch(8.73, 22.53, 349.29°)
OKLaboklab(22.22% 0.0675 -0.0109)
OKLCHoklch(22.22% 0.068 350.8)
XYZxyz(1.6226, 0.9692, 1.3977)
Luminance0.0097 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A1F #0A311C
analogous
#300A31 #310A1F #310A0C
triadic
#310A1F #1F310A #0A1F31
tetradic
#310A1F #31300A #0A311C #0A0C31
square
#310A1F #31300A #0A311C #0A0C31
split-complementary
#310A1F #0C310A #0A3130
monochromatic
#190510 #190510 #310A1F #64143F #971F5F

Accessibility & contrast

On white

17.59
#310A1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#310A1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310A1F
17.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A1F#FFFFFF#000000##FFFFFF
##310A1F1.0017.591.1917.59
#FFFFFF17.591.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310a1f;
/* rgb */ color: rgb(49, 10, 31);
/* oklch */ color: oklch(22.2% 0.068 350.8);
Tailwind
colors: {
  custom: {
    50: '#6b4c5a',
    500: '#310a1f',
    950: '#000000',
  },
}
SCSS
$custom: #310a1f;
$custom-light: #6b4c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#310a1f",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 31
  },
  "hsl": {
    "h": 327.692,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.2222,
    "c": 0.06832,
    "h": 350.8
  },
  "luminance": 0.00969
}

Semantic roles & 50–950 ramp

primary
#310A1F
secondary
#296E49
accent
#E98D3F
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #310A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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