#310D3A#310D3A

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

Color values

HEX#310D3A
RGBrgb(49, 13, 58)
HSLhsl(288, 63%, 14%)
HSVhsv(288, 78%, 23%)
CMYKcmyk(15.5%, 77.6%, 0%, 77.3%)
CIE-LABlab(10.90, 26.01, -20.82)
CIE-LCHlch(10.90, 33.31, 321.32°)
OKLaboklab(24.32% 0.0669 -0.0583)
OKLCHoklch(24.32% 0.089 318.9)
XYZxyz(2.1742, 1.2464, 4.1282)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D3A #163A0D
analogous
#1B0D3A #310D3A #3A0D2D
triadic
#310D3A #3A310D #0D3A31
tetradic
#310D3A #3A1B0D #163A0D #0D2D3A
square
#310D3A #3A1B0D #163A0D #0D2D3A
split-complementary
#310D3A #2D3A0D #0D3A1B
monochromatic
#150619 #150619 #310D3A #5B186C #85239E

Accessibility & contrast

On white

16.81
#310D3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310D3A
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D3A#FFFFFF#000000##FFFFFF
##310D3A1.0016.811.2516.81
#FFFFFF16.811.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011B3B
Deuteranopia (green-blind)
#101E39
Tritanopia (blue-blind)
#311522
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310d3a;
/* rgb */ color: rgb(49, 13, 58);
/* oklch */ color: oklch(24.3% 0.089 318.9);
Tailwind
colors: {
  custom: {
    50: '#6b4f70',
    500: '#310d3a',
    950: '#000000',
  },
}
SCSS
$custom: #310d3a;
$custom-light: #6b4f70;
$custom-dark: #000000;
JSON
{
  "hex": "#310d3a",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 58
  },
  "hsl": {
    "h": 288,
    "s": 63.38,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24316,
    "c": 0.08875,
    "h": 318.9
  },
  "luminance": 0.01246
}

Semantic roles & 50–950 ramp

primary
#310D3A
secondary
#3C762D
accent
#E64162
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #310D3A

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

Preview Lab → · Contrast checker → · Palette generator →

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