#310C2F#310C2F

#310C2F is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.4% C 0.079 H 330.0°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#310C2F
RGBrgb(49, 12, 47)
HSLhsl(303, 61%, 12%)
HSVhsv(303, 76%, 19%)
CMYKcmyk(0%, 75.5%, 4.1%, 80.8%)
CIE-LABlab(9.96, 24.05, -14.30)
CIE-LCHlch(9.96, 27.98, 329.27°)
OKLaboklab(23.4% 0.068 -0.0393)
OKLCHoklch(23.4% 0.079 330)
XYZxyz(1.9112, 1.1213, 2.8045)
Luminance0.0112 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C2F #0C310E
analogous
#210C31 #310C2F #310C1D
triadic
#310C2F #2F310C #0C2F31
tetradic
#310C2F #31210C #0C310E #0C1D31
square
#310C2F #31210C #0C310E #0C1D31
split-complementary
#310C2F #1D310C #0C3121
monochromatic
#190618 #190618 #310C2F #62185E #93248D

Accessibility & contrast

On white

17.15
#310C2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#310C2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310C2F
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C2F#FFFFFF#000000##FFFFFF
##310C2F1.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091830
Deuteranopia (green-blind)
#161D2E
Tritanopia (blue-blind)
#33101C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310c2f;
/* rgb */ color: rgb(49, 12, 47);
/* oklch */ color: oklch(23.4% 0.079 330.0);
Tailwind
colors: {
  custom: {
    50: '#6b4e67',
    500: '#310c2f',
    950: '#000000',
  },
}
SCSS
$custom: #310c2f;
$custom-light: #6b4e67;
$custom-dark: #000000;
JSON
{
  "hex": "#310c2f",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 47
  },
  "hsl": {
    "h": 303.243,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23402,
    "c": 0.07857,
    "h": 330
  },
  "luminance": 0.01121
}

Semantic roles & 50–950 ramp

primary
#310C2F
secondary
#2C6D2F
accent
#E44D44
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #310C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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