#310B2B#310B2B

#310B2B is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.0% C 0.076 H 334.6°. Best body text is #FFFFFF at 17.31:1 contrast (WCAG AA passes).

Color values

HEX#310B2B
RGBrgb(49, 11, 43)
HSLhsl(309, 63%, 12%)
HSVhsv(309, 78%, 19%)
CMYKcmyk(0%, 77.6%, 12.2%, 80.8%)
CIE-LABlab(9.54, 23.75, -12.01)
CIE-LCHlch(9.54, 26.62, 333.18°)
OKLaboklab(23.01% 0.069 -0.0327)
OKLCHoklch(23.01% 0.076 334.6)
XYZxyz(1.8224, 1.0669, 2.3950)
Luminance0.0107 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B2B #0B3111
analogous
#240B31 #310B2B #310B18
triadic
#310B2B #2B310B #0B2B31
tetradic
#310B2B #31240B #0B3111 #0B1831
square
#310B2B #31240B #0B3111 #0B1831
split-complementary
#310B2B #18310B #0B3124
monochromatic
#190616 #190616 #310B2B #631657 #952183

Accessibility & contrast

On white

17.31
#310B2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#310B2B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310B2B
17.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B2B#FFFFFF#000000##FFFFFF
##310B2B1.0017.311.2117.31
#FFFFFF17.311.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B172C
Deuteranopia (green-blind)
#171D2A
Tritanopia (blue-blind)
#340E19
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310b2b;
/* rgb */ color: rgb(49, 11, 43);
/* oklch */ color: oklch(23.0% 0.076 334.6);
Tailwind
colors: {
  custom: {
    50: '#6b4d64',
    500: '#310b2b',
    950: '#000000',
  },
}
SCSS
$custom: #310b2b;
$custom-light: #6b4d64;
$custom-dark: #000000;
JSON
{
  "hex": "#310b2b",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 43
  },
  "hsl": {
    "h": 309.474,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.23012,
    "c": 0.07635,
    "h": 334.6
  },
  "luminance": 0.01067
}

Semantic roles & 50–950 ramp

primary
#310B2B
secondary
#2A6E35
accent
#E65B41
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #310B2B

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

Preview Lab → · Contrast checker → · Palette generator →

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