#310A36#310A36

#310A36 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.6% C 0.089 H 322.9°. Best body text is #FFFFFF at 17.11:1 contrast (WCAG AA passes).

Color values

HEX#310A36
RGBrgb(49, 10, 54)
HSLhsl(293, 69%, 13%)
HSVhsv(293, 81%, 21%)
CMYKcmyk(9.3%, 81.5%, 0%, 78.8%)
CIE-LABlab(10.08, 26.56, -19.23)
CIE-LCHlch(10.08, 32.79, 324.09°)
OKLaboklab(23.64% 0.071 -0.0536)
OKLCHoklch(23.64% 0.089 322.9)
XYZxyz(2.0410, 1.1365, 3.6012)
Luminance0.0114 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A36 #0F360A
analogous
#1B0A36 #310A36 #360A25
triadic
#310A36 #36310A #0A3631
tetradic
#310A36 #361B0A #0F360A #0A2536
square
#310A36 #361B0A #0F360A #0A2536
split-complementary
#310A36 #25360A #0A361B
monochromatic
#17051A #17051A #310A36 #60146A #8F1D9D

Accessibility & contrast

On white

17.11
#310A36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#310A36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310A36
17.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A36#FFFFFF#000000##FFFFFF
##310A361.0017.111.2317.11
#FFFFFF17.111.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011937
Deuteranopia (green-blind)
#111D35
Tritanopia (blue-blind)
#32121F
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310a36;
/* rgb */ color: rgb(49, 10, 54);
/* oklch */ color: oklch(23.6% 0.089 322.9);
Tailwind
colors: {
  custom: {
    50: '#6b4d6d',
    500: '#310a36',
    950: '#000000',
  },
}
SCSS
$custom: #310a36;
$custom-light: #6b4d6d;
$custom-dark: #000000;
JSON
{
  "hex": "#310a36",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 54
  },
  "hsl": {
    "h": 293.182,
    "s": 68.75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23638,
    "c": 0.08901,
    "h": 322.9
  },
  "luminance": 0.01136
}

Semantic roles & 50–950 ramp

primary
#310A36
secondary
#317328
accent
#EC3C50
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #310A36

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

Preview Lab → · Contrast checker → · Palette generator →

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