#310B2C#310B2C

#310B2C is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.1% C 0.077 H 333.4°. Best body text is #FFFFFF at 17.29:1 contrast (WCAG AA passes).

Color values

HEX#310B2C
RGBrgb(49, 11, 44)
HSLhsl(308, 63%, 12%)
HSVhsv(308, 78%, 19%)
CMYKcmyk(0%, 77.6%, 10.2%, 80.8%)
CIE-LABlab(9.60, 23.95, -12.66)
CIE-LCHlch(9.60, 27.09, 332.14°)
OKLaboklab(23.08% 0.0691 -0.0346)
OKLCHoklch(23.08% 0.077 333.4)
XYZxyz(1.8409, 1.0743, 2.4928)
Luminance0.0107 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B2C #0B3110
analogous
#230B31 #310B2C #310B19
triadic
#310B2C #2C310B #0B2C31
tetradic
#310B2C #31230B #0B3110 #0B1931
square
#310B2C #31230B #0B3110 #0B1931
split-complementary
#310B2C #19310B #0B3123
monochromatic
#190616 #190616 #310B2C #631659 #952186

Accessibility & contrast

On white

17.29
#310B2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B2C
17.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B2C#FFFFFF#000000##FFFFFF
##310B2C1.0017.291.2117.29
#FFFFFF17.291.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A172D
Deuteranopia (green-blind)
#171D2B
Tritanopia (blue-blind)
#340E1A
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310b2c;
/* rgb */ color: rgb(49, 11, 44);
/* oklch */ color: oklch(23.1% 0.077 333.4);
Tailwind
colors: {
  custom: {
    50: '#6b4d65',
    500: '#310b2c',
    950: '#000000',
  },
}
SCSS
$custom: #310b2c;
$custom-light: #6b4d65;
$custom-dark: #000000;
JSON
{
  "hex": "#310b2c",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 44
  },
  "hsl": {
    "h": 307.895,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.23075,
    "c": 0.0773,
    "h": 333.4
  },
  "luminance": 0.01074
}

Semantic roles & 50–950 ramp

primary
#310B2C
secondary
#2A6E33
accent
#E65741
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #310B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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