#310C3A#310C3A

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

Color values

HEX#310C3A
RGBrgb(49, 12, 58)
HSLhsl(288, 66%, 14%)
HSVhsv(288, 79%, 23%)
CMYKcmyk(15.5%, 79.3%, 0%, 77.3%)
CIE-LABlab(10.71, 26.51, -21.11)
CIE-LCHlch(10.71, 33.89, 321.48°)
OKLaboklab(24.19% 0.0683 -0.0591)
OKLCHoklch(24.19% 0.09 319.1)
XYZxyz(2.1617, 1.2215, 4.1241)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C3A #153A0C
analogous
#1A0C3A #310C3A #3A0C2C
triadic
#310C3A #3A310C #0C3A31
tetradic
#310C3A #3A1A0C #153A0C #0C2C3A
square
#310C3A #3A1A0C #153A0C #0C2C3A
split-complementary
#310C3A #2C3A0C #0C3A1A
monochromatic
#150519 #150519 #310C3A #5C166D #87219F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##310C3A#FFFFFF#000000##FFFFFF
##310C3A1.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)
#001A3B
Deuteranopia (green-blind)
#0F1E39
Tritanopia (blue-blind)
#311521
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310c3a;
/* rgb */ color: rgb(49, 12, 58);
/* oklch */ color: oklch(24.2% 0.090 319.1);
Tailwind
colors: {
  custom: {
    50: '#6b4e70',
    500: '#310c3a',
    950: '#000000',
  },
}
SCSS
$custom: #310c3a;
$custom-light: #6b4e70;
$custom-dark: #000000;
JSON
{
  "hex": "#310c3a",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 58
  },
  "hsl": {
    "h": 288.261,
    "s": 65.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24186,
    "c": 0.09031,
    "h": 319.1
  },
  "luminance": 0.01221
}

Semantic roles & 50–950 ramp

primary
#310C3A
secondary
#3A762C
accent
#E93F60
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #310C3A

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

Preview Lab → · Contrast checker → · Palette generator →

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