#310C2D#310C2D

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

Color values

HEX#310C2D
RGBrgb(49, 12, 45)
HSLhsl(306, 61%, 12%)
HSVhsv(306, 76%, 19%)
CMYKcmyk(0%, 75.5%, 8.2%, 80.8%)
CIE-LABlab(9.84, 23.64, -13.02)
CIE-LCHlch(9.84, 26.98, 331.16°)
OKLaboklab(23.27% 0.0678 -0.0356)
OKLCHoklch(23.27% 0.077 332.3)
XYZxyz(1.8717, 1.1055, 2.5969)
Luminance0.0111 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C2D #0C3110
analogous
#230C31 #310C2D #310C1B
triadic
#310C2D #2D310C #0C2D31
tetradic
#310C2D #31230C #0C3110 #0C1B31
square
#310C2D #31230C #0C3110 #0C1B31
split-complementary
#310C2D #1B310C #0C3123
monochromatic
#190617 #190617 #310C2D #62185A #932487

Accessibility & contrast

On white

17.20
#310C2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C2D
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C2D#FFFFFF#000000##FFFFFF
##310C2D1.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A182E
Deuteranopia (green-blind)
#171D2C
Tritanopia (blue-blind)
#330F1B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310c2d;
/* rgb */ color: rgb(49, 12, 45);
/* oklch */ color: oklch(23.3% 0.077 332.3);
Tailwind
colors: {
  custom: {
    50: '#6b4e66',
    500: '#310c2d',
    950: '#000000',
  },
}
SCSS
$custom: #310c2d;
$custom-light: #6b4e66;
$custom-dark: #000000;
JSON
{
  "hex": "#310c2d",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 45
  },
  "hsl": {
    "h": 306.486,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23273,
    "c": 0.07656,
    "h": 332.3
  },
  "luminance": 0.01105
}

Semantic roles & 50–950 ramp

primary
#310C2D
secondary
#2C6D33
accent
#E45544
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #310C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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