#310B2A#310B2A

#310B2A is a very dark, moderate pink. Relative luminance 0.011; OKLCH L 23.0% C 0.075 H 335.8°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#310B2A
RGBrgb(49, 11, 42)
HSLhsl(311, 63%, 12%)
HSVhsv(311, 78%, 19%)
CMYKcmyk(0%, 77.6%, 14.3%, 80.8%)
CIE-LABlab(9.48, 23.56, -11.35)
CIE-LCHlch(9.48, 26.15, 334.27°)
OKLaboklab(22.95% 0.0688 -0.0309)
OKLCHoklch(22.95% 0.075 335.8)
XYZxyz(1.8042, 1.0596, 2.2995)
Luminance0.0106 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B2A #0B3112
analogous
#250B31 #310B2A #310B17
triadic
#310B2A #2A310B #0B2A31
tetradic
#310B2A #31250B #0B3112 #0B1731
square
#310B2A #31250B #0B3112 #0B1731
split-complementary
#310B2A #17310B #0B3125
monochromatic
#190615 #190615 #310B2A #631655 #952180

Accessibility & contrast

On white

17.33
#310B2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B2A
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B2A#FFFFFF#000000##FFFFFF
##310B2A1.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B172B
Deuteranopia (green-blind)
#181D29
Tritanopia (blue-blind)
#340D19
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310b2a;
/* rgb */ color: rgb(49, 11, 42);
/* oklch */ color: oklch(23.0% 0.075 335.8);
Tailwind
colors: {
  custom: {
    50: '#6b4d63',
    500: '#310b2a',
    950: '#000000',
  },
}
SCSS
$custom: #310b2a;
$custom-light: #6b4d63;
$custom-dark: #000000;
JSON
{
  "hex": "#310b2a",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 42
  },
  "hsl": {
    "h": 311.053,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.22951,
    "c": 0.07541,
    "h": 335.8
  },
  "luminance": 0.01059
}

Semantic roles & 50–950 ramp

primary
#310B2A
secondary
#2A6E37
accent
#E66041
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #310B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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