#310D2D#310D2D

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

Color values

HEX#310D2D
RGBrgb(49, 13, 45)
HSLhsl(307, 58%, 12%)
HSVhsv(307, 73%, 19%)
CMYKcmyk(0%, 73.5%, 8.2%, 80.8%)
CIE-LABlab(10.03, 23.11, -12.72)
CIE-LCHlch(10.03, 26.37, 331.18°)
OKLaboklab(23.41% 0.0662 -0.0348)
OKLCHoklch(23.41% 0.075 332.3)
XYZxyz(1.8842, 1.1304, 2.6011)
Luminance0.0113 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D2D #0D3111
analogous
#230D31 #310D2D #310D1B
triadic
#310D2D #2D310D #0D2D31
tetradic
#310D2D #31230D #0D3111 #0D1B31
square
#310D2D #31230D #0D3111 #0D1B31
split-complementary
#310D2D #1B310D #0D3123
monochromatic
#180616 #180616 #310D2D #611A59 #922786

Accessibility & contrast

On white

17.13
#310D2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310D2D
17.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D2D#FFFFFF#000000##FFFFFF
##310D2D1.0017.131.2317.13
#FFFFFF17.131.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C182E
Deuteranopia (green-blind)
#171D2C
Tritanopia (blue-blind)
#33101B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310d2d;
/* rgb */ color: rgb(49, 13, 45);
/* oklch */ color: oklch(23.4% 0.075 332.3);
Tailwind
colors: {
  custom: {
    50: '#6b4e66',
    500: '#310d2d',
    950: '#000000',
  },
}
SCSS
$custom: #310d2d;
$custom-light: #6b4e66;
$custom-dark: #000000;
JSON
{
  "hex": "#310d2d",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 45
  },
  "hsl": {
    "h": 306.667,
    "s": 58.065,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23413,
    "c": 0.0748,
    "h": 332.3
  },
  "luminance": 0.0113
}

Semantic roles & 50–950 ramp

primary
#310D2D
secondary
#2E6C35
accent
#E15847
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070205
muted
#7A787A

Preview Lab

Preview with #310D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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