#310B36#310B36

#310B36 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.8% C 0.087 H 322.8°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#310B36
RGBrgb(49, 11, 54)
HSLhsl(293, 66%, 13%)
HSVhsv(293, 80%, 21%)
CMYKcmyk(9.3%, 79.6%, 0%, 78.8%)
CIE-LABlab(10.25, 26.08, -18.96)
CIE-LCHlch(10.25, 32.25, 323.98°)
OKLaboklab(23.76% 0.0697 -0.0528)
OKLCHoklch(23.76% 0.088 322.8)
XYZxyz(2.0521, 1.1588, 3.6049)
Luminance0.0116 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B36 #10360B
analogous
#1B0B36 #310B36 #360B25
triadic
#310B36 #36310B #0B3631
tetradic
#310B36 #361B0B #10360B #0B2536
square
#310B36 #361B0B #10360B #0B2536
split-complementary
#310B36 #25360B #0B361B
monochromatic
#170519 #170519 #310B36 #5F1569 #8D209C

Accessibility & contrast

On white

17.05
#310B36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B36
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B36#FFFFFF#000000##FFFFFF
##310B361.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310b36;
/* rgb */ color: rgb(49, 11, 54);
/* oklch */ color: oklch(23.8% 0.087 322.8);
Tailwind
colors: {
  custom: {
    50: '#6b4e6d',
    500: '#310b36',
    950: '#000000',
  },
}
SCSS
$custom: #310b36;
$custom-light: #6b4e6d;
$custom-dark: #000000;
JSON
{
  "hex": "#310b36",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 54
  },
  "hsl": {
    "h": 293.023,
    "s": 66.154,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23759,
    "c": 0.0875,
    "h": 322.8
  },
  "luminance": 0.01159
}

Semantic roles & 50–950 ramp

primary
#310B36
secondary
#33732A
accent
#E93F53
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #310B36

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

Preview Lab → · Contrast checker → · Palette generator →

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