#310D3C#310D3C

#310D3C is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.5% C 0.091 H 317.2°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#310D3C
RGBrgb(49, 13, 60)
HSLhsl(286, 64%, 14%)
HSVhsv(286, 78%, 24%)
CMYKcmyk(18.3%, 78.3%, 0%, 76.5%)
CIE-LABlab(11.04, 26.48, -22.01)
CIE-LCHlch(11.04, 34.44, 320.27°)
OKLaboklab(24.47% 0.0668 -0.0618)
OKLCHoklch(24.47% 0.091 317.2)
XYZxyz(2.2260, 1.2672, 4.4014)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D3C #183C0D
analogous
#1A0D3C #310D3C #3C0D30
triadic
#310D3C #3C310D #0D3C31
tetradic
#310D3C #3C1A0D #183C0D #0D303C
square
#310D3C #3C1A0D #183C0D #0D303C
split-complementary
#310D3C #303C0D #0D3C1A
monochromatic
#150519 #150519 #310D3C #5A186E #8323A1

Accessibility & contrast

On white

16.75
#310D3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#310D3C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310D3C
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D3C#FFFFFF#000000##FFFFFF
##310D3C1.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3D
Deuteranopia (green-blind)
#0E1F3B
Tritanopia (blue-blind)
#311623
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310d3c;
/* rgb */ color: rgb(49, 13, 60);
/* oklch */ color: oklch(24.5% 0.091 317.2);
Tailwind
colors: {
  custom: {
    50: '#6b4f72',
    500: '#310d3c',
    950: '#000000',
  },
}
SCSS
$custom: #310d3c;
$custom-light: #6b4f72;
$custom-dark: #000000;
JSON
{
  "hex": "#310d3c",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 60
  },
  "hsl": {
    "h": 285.957,
    "s": 64.384,
    "l": 14.314
  },
  "oklch": {
    "l": 0.2447,
    "c": 0.091,
    "h": 317.2
  },
  "luminance": 0.01267
}

Semantic roles & 50–950 ramp

primary
#310D3C
secondary
#3F782D
accent
#E74067
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070208
muted
#7A787B

Preview Lab

Preview with #310D3C

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

Preview Lab → · Contrast checker → · Palette generator →

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