#310A3B#310A3B

#310A3B is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.0% C 0.094 H 318.6°. Best body text is #FFFFFF at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#310A3B
RGBrgb(49, 10, 59)
HSLhsl(288, 71%, 14%)
HSVhsv(288, 83%, 23%)
CMYKcmyk(16.9%, 83.1%, 0%, 76.9%)
CIE-LABlab(10.45, 27.70, -22.24)
CIE-LCHlch(10.45, 35.53, 321.24°)
OKLaboklab(24.02% 0.0707 -0.0624)
OKLCHoklch(24.02% 0.094 318.6)
XYZxyz(2.1645, 1.1859, 4.2517)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A3B #143B0A
analogous
#180A3B #310A3B #3B0A2C
triadic
#310A3B #3B310A #0A3B31
tetradic
#310A3B #3B180A #143B0A #0A2C3B
square
#310A3B #3B180A #143B0A #0A2C3B
split-complementary
#310A3B #2C3B0A #0A3B18
monochromatic
#16041A #16041A #310A3B #5C136F #881CA4

Accessibility & contrast

On white

16.97
#310A3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310A3B
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A3B#FFFFFF#000000##FFFFFF
##310A3B1.0016.971.2416.97
#FFFFFF16.971.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3C
Deuteranopia (green-blind)
#0D1E3A
Tritanopia (blue-blind)
#311421
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310a3b;
/* rgb */ color: rgb(49, 10, 59);
/* oklch */ color: oklch(24.0% 0.094 318.6);
Tailwind
colors: {
  custom: {
    50: '#6b4d71',
    500: '#310a3b',
    950: '#000000',
  },
}
SCSS
$custom: #310a3b;
$custom-light: #6b4d71;
$custom-dark: #000000;
JSON
{
  "hex": "#310a3b",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 59
  },
  "hsl": {
    "h": 287.755,
    "s": 71.014,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24023,
    "c": 0.09432,
    "h": 318.6
  },
  "luminance": 0.01186
}

Semantic roles & 50–950 ramp

primary
#310A3B
secondary
#397828
accent
#EE3A5F
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #310A3B

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

Preview Lab → · Contrast checker → · Palette generator →

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