#310A3D#310A3D

#310A3D is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.2% C 0.096 H 316.9°. Best body text is #FFFFFF at 16.92:1 contrast (WCAG AA passes).

Color values

HEX#310A3D
RGBrgb(49, 10, 61)
HSLhsl(286, 72%, 14%)
HSVhsv(286, 84%, 24%)
CMYKcmyk(19.7%, 83.6%, 0%, 76.1%)
CIE-LABlab(10.61, 28.17, -23.42)
CIE-LCHlch(10.61, 36.64, 320.26°)
OKLaboklab(24.19% 0.0705 -0.0659)
OKLCHoklch(24.19% 0.096 316.9)
XYZxyz(2.2173, 1.2071, 4.5302)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A3D #163D0A
analogous
#180A3D #310A3D #3D0A30
triadic
#310A3D #3D310A #0A3D31
tetradic
#310A3D #3D180A #163D0A #0A303D
square
#310A3D #3D180A #163D0A #0A303D
split-complementary
#310A3D #303D0A #0A3D18
monochromatic
#15041A #15041A #310A3D #5B1372 #851BA6

Accessibility & contrast

On white

16.92
#310A3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#310A3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310A3D
16.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A3D#FFFFFF#000000##FFFFFF
##310A3D1.0016.921.2416.92
#FFFFFF16.921.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3E
Deuteranopia (green-blind)
#0B1E3C
Tritanopia (blue-blind)
#301523
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310a3d;
/* rgb */ color: rgb(49, 10, 61);
/* oklch */ color: oklch(24.2% 0.096 316.9);
Tailwind
colors: {
  custom: {
    50: '#6b4e73',
    500: '#310a3d',
    950: '#000000',
  },
}
SCSS
$custom: #310a3d;
$custom-light: #6b4e73;
$custom-dark: #000000;
JSON
{
  "hex": "#310a3d",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 61
  },
  "hsl": {
    "h": 285.882,
    "s": 71.831,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24185,
    "c": 0.09647,
    "h": 316.9
  },
  "luminance": 0.01207
}

Semantic roles & 50–950 ramp

primary
#310A3D
secondary
#3C7A28
accent
#EF3964
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310A3D

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

Preview Lab → · Contrast checker → · Palette generator →

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