#310D2F#310D2F

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

Color values

HEX#310D2F
RGBrgb(49, 13, 47)
HSLhsl(303, 58%, 12%)
HSVhsv(303, 73%, 19%)
CMYKcmyk(0%, 73.5%, 4.1%, 80.8%)
CIE-LABlab(10.15, 23.52, -14.00)
CIE-LCHlch(10.15, 27.37, 329.24°)
OKLaboklab(23.54% 0.0665 -0.0385)
OKLCHoklch(23.54% 0.077 329.9)
XYZxyz(1.9236, 1.1462, 2.8087)
Luminance0.0115 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D2F #0D310F
analogous
#210D31 #310D2F #310D1D
triadic
#310D2F #2F310D #0D2F31
tetradic
#310D2F #31210D #0D310F #0D1D31
square
#310D2F #31210D #0D310F #0D1D31
split-complementary
#310D2F #1D310D #0D3121
monochromatic
#180617 #180617 #310D2F #611A5D #92278C

Accessibility & contrast

On white

17.08
#310D2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310D2F
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D2F#FFFFFF#000000##FFFFFF
##310D2F1.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1930
Deuteranopia (green-blind)
#161E2E
Tritanopia (blue-blind)
#33111C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310d2f;
/* rgb */ color: rgb(49, 13, 47);
/* oklch */ color: oklch(23.5% 0.077 329.9);
Tailwind
colors: {
  custom: {
    50: '#6b4e67',
    500: '#310d2f',
    950: '#000000',
  },
}
SCSS
$custom: #310d2f;
$custom-light: #6b4e67;
$custom-dark: #000000;
JSON
{
  "hex": "#310d2f",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 47
  },
  "hsl": {
    "h": 303.333,
    "s": 58.065,
    "l": 12.157
  },
  "oklch": {
    "l": 0.2354,
    "c": 0.07683,
    "h": 329.9
  },
  "luminance": 0.01146
}

Semantic roles & 50–950 ramp

primary
#310D2F
secondary
#2E6C31
accent
#E14F47
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #310D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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