#310A3C#310A3C

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

Color values

HEX#310A3C
RGBrgb(49, 10, 60)
HSLhsl(287, 71%, 14%)
HSVhsv(287, 83%, 24%)
CMYKcmyk(18.3%, 83.3%, 0%, 76.5%)
CIE-LABlab(10.53, 27.94, -22.84)
CIE-LCHlch(10.53, 36.08, 320.74°)
OKLaboklab(24.1% 0.0706 -0.0642)
OKLCHoklch(24.1% 0.095 317.7)
XYZxyz(2.1907, 1.1964, 4.3896)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A3C #153C0A
analogous
#180A3C #310A3C #3C0A2E
triadic
#310A3C #3C310A #0A3C31
tetradic
#310A3C #3C180A #153C0A #0A2E3C
square
#310A3C #3C180A #153C0A #0A2E3C
split-complementary
#310A3C #2E3C0A #0A3C18
monochromatic
#15041A #15041A #310A3C #5C1370 #871BA5

Accessibility & contrast

On white

16.95
#310A3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310A3C
16.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A3C#FFFFFF#000000##FFFFFF
##310A3C1.0016.951.2416.95
#FFFFFF16.951.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3D
Deuteranopia (green-blind)
#0C1E3B
Tritanopia (blue-blind)
#311422
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310a3c;
/* rgb */ color: rgb(49, 10, 60);
/* oklch */ color: oklch(24.1% 0.095 317.7);
Tailwind
colors: {
  custom: {
    50: '#6b4e72',
    500: '#310a3c',
    950: '#000000',
  },
}
SCSS
$custom: #310a3c;
$custom-light: #6b4e72;
$custom-dark: #000000;
JSON
{
  "hex": "#310a3c",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 60
  },
  "hsl": {
    "h": 286.8,
    "s": 71.429,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24104,
    "c": 0.0954,
    "h": 317.7
  },
  "luminance": 0.01196
}

Semantic roles & 50–950 ramp

primary
#310A3C
secondary
#3A7928
accent
#EE3A61
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070208
muted
#7A787B

Preview Lab

Preview with #310A3C

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

Preview Lab → · Contrast checker → · Palette generator →

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