#310F2F#310F2F

#310F2F is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.8% C 0.073 H 329.9°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#310F2F
RGBrgb(49, 15, 47)
HSLhsl(304, 53%, 13%)
HSVhsv(304, 69%, 19%)
CMYKcmyk(0%, 69.4%, 4.1%, 80.8%)
CIE-LABlab(10.56, 22.42, -13.37)
CIE-LCHlch(10.56, 26.10, 329.19°)
OKLaboklab(23.83% 0.0633 -0.0367)
OKLCHoklch(23.83% 0.073 329.9)
XYZxyz(1.9505, 1.2000, 2.8177)
Luminance0.0120 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F2F #0F3111
analogous
#220F31 #310F2F #310F1E
triadic
#310F2F #2F310F #0F2F31
tetradic
#310F2F #31220F #0F3111 #0F1E31
square
#310F2F #31220F #0F3111 #0F1E31
split-complementary
#310F2F #1E310F #0F3122
monochromatic
#170716 #170716 #310F2F #601D5C #8F2C89

Accessibility & contrast

On white

16.94
#310F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310F2F
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F2F#FFFFFF#000000##FFFFFF
##310F2F1.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1A30
Deuteranopia (green-blind)
#181E2E
Tritanopia (blue-blind)
#33121D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310f2f;
/* rgb */ color: rgb(49, 15, 47);
/* oklch */ color: oklch(23.8% 0.073 329.9);
Tailwind
colors: {
  custom: {
    50: '#6a5067',
    500: '#310f2f',
    950: '#000000',
  },
}
SCSS
$custom: #310f2f;
$custom-light: #6a5067;
$custom-dark: #000000;
JSON
{
  "hex": "#310f2f",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 47
  },
  "hsl": {
    "h": 303.529,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23834,
    "c": 0.0732,
    "h": 329.9
  },
  "luminance": 0.012
}

Semantic roles & 50–950 ramp

primary
#310F2F
secondary
#316B34
accent
#DD544B
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #310F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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