#310C2A#310C2A

#310C2A is a very dark, moderate pink. Relative luminance 0.011; OKLCH L 23.1% C 0.074 H 335.9°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#310C2A
RGBrgb(49, 12, 42)
HSLhsl(311, 61%, 12%)
HSVhsv(311, 76%, 19%)
CMYKcmyk(0%, 75.5%, 14.3%, 80.8%)
CIE-LABlab(9.67, 23.04, -11.06)
CIE-LCHlch(9.67, 25.56, 334.35°)
OKLaboklab(23.09% 0.0673 -0.0301)
OKLCHoklch(23.09% 0.074 335.9)
XYZxyz(1.8160, 1.0832, 2.3035)
Luminance0.0108 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C2A #0C3113
analogous
#260C31 #310C2A #310C18
triadic
#310C2A #2A310C #0C2A31
tetradic
#310C2A #31260C #0C3113 #0C1831
square
#310C2A #31260C #0C3113 #0C1831
split-complementary
#310C2A #18310C #0C3126
monochromatic
#190615 #190615 #310C2A #621854 #93247E

Accessibility & contrast

On white

17.26
#310C2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C2A
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C2A#FFFFFF#000000##FFFFFF
##310C2A1.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C172B
Deuteranopia (green-blind)
#181D29
Tritanopia (blue-blind)
#340E19
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310c2a;
/* rgb */ color: rgb(49, 12, 42);
/* oklch */ color: oklch(23.1% 0.074 335.9);
Tailwind
colors: {
  custom: {
    50: '#6b4e63',
    500: '#310c2a',
    950: '#000000',
  },
}
SCSS
$custom: #310c2a;
$custom-light: #6b4e63;
$custom-dark: #000000;
JSON
{
  "hex": "#310c2a",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 42
  },
  "hsl": {
    "h": 311.351,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23088,
    "c": 0.07368,
    "h": 335.9
  },
  "luminance": 0.01083
}

Semantic roles & 50–950 ramp

primary
#310C2A
secondary
#2C6D38
accent
#E46244
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #310C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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