#310B3C#310B3C

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

Color values

HEX#310B3C
RGBrgb(49, 11, 60)
HSLhsl(287, 69%, 14%)
HSVhsv(287, 82%, 24%)
CMYKcmyk(18.3%, 81.7%, 0%, 76.5%)
CIE-LABlab(10.69, 27.47, -22.57)
CIE-LCHlch(10.69, 35.55, 320.59°)
OKLaboklab(24.22% 0.0694 -0.0634)
OKLCHoklch(24.22% 0.094 317.6)
XYZxyz(2.2018, 1.2187, 4.3933)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B3C #163C0B
analogous
#190B3C #310B3C #3C0B2F
triadic
#310B3C #3C310B #0B3C31
tetradic
#310B3C #3C190B #163C0B #0B2F3C
square
#310B3C #3C190B #163C0B #0B2F3C
split-complementary
#310B3C #2F3C0B #0B3C19
monochromatic
#15051A #15051A #310B3C #5B1470 #851EA3

Accessibility & contrast

On white

16.88
#310B3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B3C
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B3C#FFFFFF#000000##FFFFFF
##310B3C1.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310b3c;
/* rgb */ color: rgb(49, 11, 60);
/* oklch */ color: oklch(24.2% 0.094 317.6);
Tailwind
colors: {
  custom: {
    50: '#6b4e72',
    500: '#310b3c',
    950: '#000000',
  },
}
SCSS
$custom: #310b3c;
$custom-light: #6b4e72;
$custom-dark: #000000;
JSON
{
  "hex": "#310b3c",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 60
  },
  "hsl": {
    "h": 286.531,
    "s": 69.014,
    "l": 13.922
  },
  "oklch": {
    "l": 0.2422,
    "c": 0.09399,
    "h": 317.6
  },
  "luminance": 0.01219
}

Semantic roles & 50–950 ramp

primary
#310B3C
secondary
#3C792A
accent
#EC3C63
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070208
muted
#7A787B

Preview Lab

Preview with #310B3C

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

Preview Lab → · Contrast checker → · Palette generator →

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