#310C3C#310C3C

#310C3C is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.3% C 0.093 H 317.4°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#310C3C
RGBrgb(49, 12, 60)
HSLhsl(286, 67%, 14%)
HSVhsv(286, 80%, 24%)
CMYKcmyk(18.3%, 80%, 0%, 76.5%)
CIE-LABlab(10.87, 26.99, -22.30)
CIE-LCHlch(10.87, 35.01, 320.44°)
OKLaboklab(24.34% 0.0681 -0.0626)
OKLCHoklch(24.34% 0.093 317.4)
XYZxyz(2.2136, 1.2422, 4.3973)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C3C #173C0C
analogous
#190C3C #310C3C #3C0C2F
triadic
#310C3C #3C310C #0C3C31
tetradic
#310C3C #3C190C #173C0C #0C2F3C
square
#310C3C #3C190C #173C0C #0C2F3C
split-complementary
#310C3C #2F3C0C #0C3C19
monochromatic
#15051A #15051A #310C3C #5B166F #8420A2

Accessibility & contrast

On white

16.82
#310C3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C3C
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C3C#FFFFFF#000000##FFFFFF
##310C3C1.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3D
Deuteranopia (green-blind)
#0D1E3B
Tritanopia (blue-blind)
#311523
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310c3c;
/* rgb */ color: rgb(49, 12, 60);
/* oklch */ color: oklch(24.3% 0.093 317.4);
Tailwind
colors: {
  custom: {
    50: '#6b4e72',
    500: '#310c3c',
    950: '#000000',
  },
}
SCSS
$custom: #310c3c;
$custom-light: #6b4e72;
$custom-dark: #000000;
JSON
{
  "hex": "#310c3c",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 60
  },
  "hsl": {
    "h": 286.25,
    "s": 66.667,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24342,
    "c": 0.09252,
    "h": 317.4
  },
  "luminance": 0.01242
}

Semantic roles & 50–950 ramp

primary
#310C3C
secondary
#3D782C
accent
#EA3E65
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070208
muted
#7A787B

Preview Lab

Preview with #310C3C

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

Preview Lab → · Contrast checker → · Palette generator →

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