#310F2C#310F2C

#310F2C is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.6% C 0.070 H 333.6°. Best body text is #FFFFFF at 17.00:1 contrast (WCAG AA passes).

Color values

HEX#310F2C
RGBrgb(49, 15, 44)
HSLhsl(309, 53%, 13%)
HSVhsv(309, 69%, 19%)
CMYKcmyk(0%, 69.4%, 10.2%, 80.8%)
CIE-LABlab(10.38, 21.79, -11.43)
CIE-LCHlch(10.38, 24.60, 332.32°)
OKLaboklab(23.65% 0.0628 -0.0311)
OKLCHoklch(23.65% 0.07 333.6)
XYZxyz(1.8921, 1.1766, 2.5098)
Luminance0.0118 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F2C #0F3114
analogous
#250F31 #310F2C #310F1B
triadic
#310F2C #2C310F #0F2C31
tetradic
#310F2C #31250F #0F3114 #0F1B31
square
#310F2C #31250F #0F3114 #0F1B31
split-complementary
#310F2C #1B310F #0F3125
monochromatic
#170715 #170715 #310F2C #601D56 #8F2C80

Accessibility & contrast

On white

17.00
#310F2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#310F2C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F2C
17.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F2C#FFFFFF#000000##FFFFFF
##310F2C1.0017.001.2417.00
#FFFFFF17.001.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF17.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E192D
Deuteranopia (green-blind)
#191E2B
Tritanopia (blue-blind)
#33111B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310f2c;
/* rgb */ color: rgb(49, 15, 44);
/* oklch */ color: oklch(23.6% 0.070 333.6);
Tailwind
colors: {
  custom: {
    50: '#6a4f65',
    500: '#310f2c',
    950: '#000000',
  },
}
SCSS
$custom: #310f2c;
$custom-light: #6a4f65;
$custom-dark: #000000;
JSON
{
  "hex": "#310f2c",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 44
  },
  "hsl": {
    "h": 308.824,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.2365,
    "c": 0.07011,
    "h": 333.6
  },
  "luminance": 0.01176
}

Semantic roles & 50–950 ramp

primary
#310F2C
secondary
#316B39
accent
#DD614B
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070205
muted
#7A787A

Preview Lab

Preview with #310F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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