#310C3D#310C3D

#310C3D is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.4% C 0.094 H 316.6°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#310C3D
RGBrgb(49, 12, 61)
HSLhsl(285, 67%, 14%)
HSVhsv(285, 80%, 24%)
CMYKcmyk(19.7%, 80.3%, 0%, 76.1%)
CIE-LABlab(10.94, 27.23, -22.89)
CIE-LCHlch(10.94, 35.57, 319.95°)
OKLaboklab(24.42% 0.068 -0.0643)
OKLCHoklch(24.42% 0.094 316.6)
XYZxyz(2.2403, 1.2529, 4.5378)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C3D #183D0C
analogous
#190C3D #310C3D #3D0C31
triadic
#310C3D #3D310C #0C3D31
tetradic
#310C3D #3D190C #183D0C #0C313D
square
#310C3D #3D190C #183D0C #0C313D
split-complementary
#310C3D #313D0C #0C3D19
monochromatic
#15051A #15051A #310C3D #5A1670 #8320A3

Accessibility & contrast

On white

16.79
#310C3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C3D
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C3D#FFFFFF#000000##FFFFFF
##310C3D1.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3E
Deuteranopia (green-blind)
#0C1E3C
Tritanopia (blue-blind)
#301623
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310c3d;
/* rgb */ color: rgb(49, 12, 61);
/* oklch */ color: oklch(24.4% 0.094 316.6);
Tailwind
colors: {
  custom: {
    50: '#6b4f73',
    500: '#310c3d',
    950: '#000000',
  },
}
SCSS
$custom: #310c3d;
$custom-light: #6b4f73;
$custom-dark: #000000;
JSON
{
  "hex": "#310c3d",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 61
  },
  "hsl": {
    "h": 285.306,
    "s": 67.123,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24422,
    "c": 0.09364,
    "h": 316.6
  },
  "luminance": 0.01253
}

Semantic roles & 50–950 ramp

primary
#310C3D
secondary
#3F792C
accent
#EA3E68
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310C3D

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

Preview Lab → · Contrast checker → · Palette generator →

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