#310C3F#310C3F

#310C3F is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.6% C 0.096 H 315.0°. Best body text is #FFFFFF at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#310C3F
RGBrgb(49, 12, 63)
HSLhsl(284, 68%, 15%)
HSVhsv(284, 81%, 25%)
CMYKcmyk(22.2%, 81%, 0%, 75.3%)
CIE-LABlab(11.10, 27.72, -24.06)
CIE-LCHlch(11.10, 36.70, 319.04°)
OKLaboklab(24.58% 0.0678 -0.0678)
OKLCHoklch(24.58% 0.096 315)
XYZxyz(2.2952, 1.2749, 4.8268)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C3F #1A3F0C
analogous
#170C3F #310C3F #3F0C34
triadic
#310C3F #3F310C #0C3F31
tetradic
#310C3F #3F170C #1A3F0C #0C343F
square
#310C3F #3F170C #1A3F0C #0C343F
split-complementary
#310C3F #343F0C #0C3F17
monochromatic
#14051A #14051A #310C3F #591672 #8120A6

Accessibility & contrast

On white

16.73
#310C3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C3F
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C3F#FFFFFF#000000##FFFFFF
##310C3F1.0016.731.2516.73
#FFFFFF16.731.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C40
Deuteranopia (green-blind)
#0A1F3E
Tritanopia (blue-blind)
#301724
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310c3f;
/* rgb */ color: rgb(49, 12, 63);
/* oklch */ color: oklch(24.6% 0.096 315.0);
Tailwind
colors: {
  custom: {
    50: '#6b4f74',
    500: '#310c3f',
    950: '#000000',
  },
}
SCSS
$custom: #310c3f;
$custom-light: #6b4f74;
$custom-dark: #000000;
JSON
{
  "hex": "#310c3f",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 63
  },
  "hsl": {
    "h": 283.529,
    "s": 68,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24583,
    "c": 0.09588,
    "h": 315
  },
  "luminance": 0.01275
}

Semantic roles & 50–950 ramp

primary
#310C3F
secondary
#417B2C
accent
#EB3D6D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310C3F

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

Preview Lab → · Contrast checker → · Palette generator →

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