#310C2B#310C2B

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

Color values

HEX#310C2B
RGBrgb(49, 12, 43)
HSLhsl(310, 61%, 12%)
HSVhsv(310, 76%, 19%)
CMYKcmyk(0%, 75.5%, 12.2%, 80.8%)
CIE-LABlab(9.72, 23.24, -11.72)
CIE-LCHlch(9.72, 26.02, 333.24°)
OKLaboklab(23.15% 0.0675 -0.0319)
OKLCHoklch(23.15% 0.075 334.7)
XYZxyz(1.8342, 1.0905, 2.3989)
Luminance0.0109 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C2B #0C3112
analogous
#250C31 #310C2B #310C19
triadic
#310C2B #2B310C #0C2B31
tetradic
#310C2B #31250C #0C3112 #0C1931
square
#310C2B #31250C #0C3112 #0C1931
split-complementary
#310C2B #19310C #0C3125
monochromatic
#190616 #190616 #310C2B #621856 #932481

Accessibility & contrast

On white

17.24
#310C2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#310C2B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310C2B
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C2B#FFFFFF#000000##FFFFFF
##310C2B1.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C172C
Deuteranopia (green-blind)
#181D2A
Tritanopia (blue-blind)
#340E1A
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310c2b;
/* rgb */ color: rgb(49, 12, 43);
/* oklch */ color: oklch(23.1% 0.075 334.7);
Tailwind
colors: {
  custom: {
    50: '#6b4e64',
    500: '#310c2b',
    950: '#000000',
  },
}
SCSS
$custom: #310c2b;
$custom-light: #6b4e64;
$custom-dark: #000000;
JSON
{
  "hex": "#310c2b",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 43
  },
  "hsl": {
    "h": 309.73,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23149,
    "c": 0.07463,
    "h": 334.7
  },
  "luminance": 0.0109
}

Semantic roles & 50–950 ramp

primary
#310C2B
secondary
#2C6D36
accent
#E45E44
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #310C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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