#310D2A#310D2A

#310D2A is a very dark, moderate pink. Relative luminance 0.011; OKLCH L 23.2% C 0.072 H 336.0°. Best body text is #FFFFFF at 17.19:1 contrast (WCAG AA passes).

Color values

HEX#310D2A
RGBrgb(49, 13, 42)
HSLhsl(312, 58%, 12%)
HSVhsv(312, 73%, 19%)
CMYKcmyk(0%, 73.5%, 14.3%, 80.8%)
CIE-LABlab(9.86, 22.50, -10.76)
CIE-LCHlch(9.86, 24.94, 334.45°)
OKLaboklab(23.23% 0.0657 -0.0292)
OKLCHoklch(23.23% 0.072 336)
XYZxyz(1.8285, 1.1081, 2.3076)
Luminance0.0111 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D2A #0D3114
analogous
#260D31 #310D2A #310D18
triadic
#310D2A #2A310D #0D2A31
tetradic
#310D2A #31260D #0D3114 #0D1831
square
#310D2A #31260D #0D3114 #0D1831
split-complementary
#310D2A #18310D #0D3126
monochromatic
#180615 #180615 #310D2A #611A53 #92277D

Accessibility & contrast

On white

17.19
#310D2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#310D2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310D2A
17.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D2A#FFFFFF#000000##FFFFFF
##310D2A1.0017.191.2217.19
#FFFFFF17.191.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D182B
Deuteranopia (green-blind)
#191D29
Tritanopia (blue-blind)
#340F19
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310d2a;
/* rgb */ color: rgb(49, 13, 42);
/* oklch */ color: oklch(23.2% 0.072 336.0);
Tailwind
colors: {
  custom: {
    50: '#6b4e63',
    500: '#310d2a',
    950: '#000000',
  },
}
SCSS
$custom: #310d2a;
$custom-light: #6b4e63;
$custom-dark: #000000;
JSON
{
  "hex": "#310d2a",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 42
  },
  "hsl": {
    "h": 311.667,
    "s": 58.065,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23231,
    "c": 0.07188,
    "h": 336
  },
  "luminance": 0.01108
}

Semantic roles & 50–950 ramp

primary
#310D2A
secondary
#2E6C3A
accent
#E16547
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070205
muted
#7A7879

Preview Lab

Preview with #310D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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