#310C36#310C36

#310C36 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.9% C 0.086 H 322.7°. Best body text is #FFFFFF at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#310C36
RGBrgb(49, 12, 54)
HSLhsl(293, 64%, 13%)
HSVhsv(293, 78%, 21%)
CMYKcmyk(9.3%, 77.8%, 0%, 78.8%)
CIE-LABlab(10.43, 25.58, -18.68)
CIE-LCHlch(10.43, 31.68, 323.87°)
OKLaboklab(23.89% 0.0684 -0.052)
OKLCHoklch(23.89% 0.086 322.7)
XYZxyz(2.0639, 1.1824, 3.6088)
Luminance0.0118 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C36 #11360C
analogous
#1C0C36 #310C36 #360C26
triadic
#310C36 #36310C #0C3631
tetradic
#310C36 #361C0C #11360C #0C2636
square
#310C36 #361C0C #11360C #0C2636
split-complementary
#310C36 #26360C #0C361C
monochromatic
#170619 #170619 #310C36 #5E1768 #8C229A

Accessibility & contrast

On white

16.98
#310C36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C36
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C36#FFFFFF#000000##FFFFFF
##310C361.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031A37
Deuteranopia (green-blind)
#121E35
Tritanopia (blue-blind)
#32131F
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310c36;
/* rgb */ color: rgb(49, 12, 54);
/* oklch */ color: oklch(23.9% 0.086 322.7);
Tailwind
colors: {
  custom: {
    50: '#6b4e6d',
    500: '#310c36',
    950: '#000000',
  },
}
SCSS
$custom: #310c36;
$custom-light: #6b4e6d;
$custom-dark: #000000;
JSON
{
  "hex": "#310c36",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 54
  },
  "hsl": {
    "h": 292.857,
    "s": 63.636,
    "l": 12.941
  },
  "oklch": {
    "l": 0.23886,
    "c": 0.08594,
    "h": 322.7
  },
  "luminance": 0.01182
}

Semantic roles & 50–950 ramp

primary
#310C36
secondary
#34722C
accent
#E74155
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #310C36

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

Preview Lab → · Contrast checker → · Palette generator →

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