#310C39#310C39

#310C39 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.1% C 0.089 H 320.0°. Best body text is #FFFFFF at 16.91:1 contrast (WCAG AA passes).

Color values

HEX#310C39
RGBrgb(49, 12, 57)
HSLhsl(289, 65%, 14%)
HSVhsv(289, 79%, 22%)
CMYKcmyk(14%, 78.9%, 0%, 77.6%)
CIE-LABlab(10.64, 26.28, -20.51)
CIE-LCHlch(10.64, 33.33, 322.03°)
OKLaboklab(24.11% 0.0683 -0.0574)
OKLCHoklch(24.11% 0.089 320)
XYZxyz(2.1365, 1.2114, 3.9914)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C39 #14390C
analogous
#1A0C39 #310C39 #390C2A
triadic
#310C39 #39310C #0C3931
tetradic
#310C39 #391A0C #14390C #0C2A39
square
#310C39 #391A0C #14390C #0C2A39
split-complementary
#310C39 #2A390C #0C391A
monochromatic
#160519 #160519 #310C39 #5C176C #88219E

Accessibility & contrast

On white

16.91
#310C39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C39
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C39#FFFFFF#000000##FFFFFF
##310C391.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011A3A
Deuteranopia (green-blind)
#101E38
Tritanopia (blue-blind)
#311421
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310c39;
/* rgb */ color: rgb(49, 12, 57);
/* oklch */ color: oklch(24.1% 0.089 320.0);
Tailwind
colors: {
  custom: {
    50: '#6b4e6f',
    500: '#310c39',
    950: '#000000',
  },
}
SCSS
$custom: #310c39;
$custom-light: #6b4e6f;
$custom-dark: #000000;
JSON
{
  "hex": "#310c39",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 57
  },
  "hsl": {
    "h": 289.333,
    "s": 65.217,
    "l": 13.529
  },
  "oklch": {
    "l": 0.2411,
    "c": 0.08921,
    "h": 320
  },
  "luminance": 0.01211
}

Semantic roles & 50–950 ramp

primary
#310C39
secondary
#39752C
accent
#E8405E
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #310C39

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

Preview Lab → · Contrast checker → · Palette generator →

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