#310D2C#310D2C

#310D2C is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.4% C 0.074 H 333.5°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#310D2C
RGBrgb(49, 13, 44)
HSLhsl(308, 58%, 12%)
HSVhsv(308, 73%, 19%)
CMYKcmyk(0%, 73.5%, 10.2%, 80.8%)
CIE-LABlab(9.98, 22.90, -12.07)
CIE-LCHlch(9.98, 25.89, 332.22°)
OKLaboklab(23.35% 0.0661 -0.0329)
OKLCHoklch(23.35% 0.074 333.5)
XYZxyz(1.8652, 1.1228, 2.5009)
Luminance0.0112 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D2C #0D3112
analogous
#240D31 #310D2C #310D1A
triadic
#310D2C #2C310D #0D2C31
tetradic
#310D2C #31240D #0D3112 #0D1A31
square
#310D2C #31240D #0D3112 #0D1A31
split-complementary
#310D2C #1A310D #0D3124
monochromatic
#180616 #180616 #310D2C #611A57 #922783

Accessibility & contrast

On white

17.15
#310D2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310D2C
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D2C#FFFFFF#000000##FFFFFF
##310D2C1.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C182D
Deuteranopia (green-blind)
#181D2B
Tritanopia (blue-blind)
#34101A
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310d2c;
/* rgb */ color: rgb(49, 13, 44);
/* oklch */ color: oklch(23.4% 0.074 333.5);
Tailwind
colors: {
  custom: {
    50: '#6b4e65',
    500: '#310d2c',
    950: '#000000',
  },
}
SCSS
$custom: #310d2c;
$custom-light: #6b4e65;
$custom-dark: #000000;
JSON
{
  "hex": "#310d2c",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 44
  },
  "hsl": {
    "h": 308.333,
    "s": 58.065,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23351,
    "c": 0.07382,
    "h": 333.5
  },
  "luminance": 0.01123
}

Semantic roles & 50–950 ramp

primary
#310D2C
secondary
#2E6C36
accent
#E15C47
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070205
muted
#7A787A

Preview Lab

Preview with #310D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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