#310C3B#310C3B

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

Color values

HEX#310C3B
RGBrgb(49, 12, 59)
HSLhsl(287, 66%, 14%)
HSVhsv(287, 80%, 23%)
CMYKcmyk(16.9%, 79.7%, 0%, 76.9%)
CIE-LABlab(10.79, 26.75, -21.70)
CIE-LCHlch(10.79, 34.45, 320.94°)
OKLaboklab(24.26% 0.0682 -0.0609)
OKLCHoklch(24.26% 0.091 318.3)
XYZxyz(2.1874, 1.2318, 4.2594)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C3B #163B0C
analogous
#1A0C3B #310C3B #3B0C2E
triadic
#310C3B #3B310C #0C3B31
tetradic
#310C3B #3B1A0C #163B0C #0C2E3B
square
#310C3B #3B1A0C #163B0C #0C2E3B
split-complementary
#310C3B #2E3B0C #0C3B1A
monochromatic
#150519 #150519 #310C3B #5B166E #8521A1

Accessibility & contrast

On white

16.85
#310C3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C3B
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C3B#FFFFFF#000000##FFFFFF
##310C3B1.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310c3b;
/* rgb */ color: rgb(49, 12, 59);
/* oklch */ color: oklch(24.3% 0.091 318.3);
Tailwind
colors: {
  custom: {
    50: '#6b4e71',
    500: '#310c3b',
    950: '#000000',
  },
}
SCSS
$custom: #310c3b;
$custom-light: #6b4e71;
$custom-dark: #000000;
JSON
{
  "hex": "#310c3b",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 59
  },
  "hsl": {
    "h": 287.234,
    "s": 66.197,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24264,
    "c": 0.09141,
    "h": 318.3
  },
  "luminance": 0.01232
}

Semantic roles & 50–950 ramp

primary
#310C3B
secondary
#3C772C
accent
#E93F63
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #310C3B

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

Preview Lab → · Contrast checker → · Palette generator →

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