#310F2D#310F2D

#310F2D is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.7% C 0.071 H 332.4°. Best body text is #FFFFFF at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#310F2D
RGBrgb(49, 15, 45)
HSLhsl(307, 53%, 13%)
HSVhsv(307, 69%, 19%)
CMYKcmyk(0%, 69.4%, 8.2%, 80.8%)
CIE-LABlab(10.44, 22.00, -12.08)
CIE-LCHlch(10.44, 25.09, 331.22°)
OKLaboklab(23.71% 0.063 -0.033)
OKLCHoklch(23.71% 0.071 332.4)
XYZxyz(1.9111, 1.1842, 2.6100)
Luminance0.0118 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F2D #0F3113
analogous
#240F31 #310F2D #310F1C
triadic
#310F2D #2D310F #0F2D31
tetradic
#310F2D #31240F #0F3113 #0F1C31
square
#310F2D #31240F #0F3113 #0F1C31
split-complementary
#310F2D #1C310F #0F3124
monochromatic
#170716 #170716 #310F2D #601D58 #8F2C83

Accessibility & contrast

On white

16.98
#310F2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310F2D
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F2D#FFFFFF#000000##FFFFFF
##310F2D1.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E192E
Deuteranopia (green-blind)
#181E2C
Tritanopia (blue-blind)
#33121C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310f2d;
/* rgb */ color: rgb(49, 15, 45);
/* oklch */ color: oklch(23.7% 0.071 332.4);
Tailwind
colors: {
  custom: {
    50: '#6a4f66',
    500: '#310f2d',
    950: '#000000',
  },
}
SCSS
$custom: #310f2d;
$custom-light: #6a4f66;
$custom-dark: #000000;
JSON
{
  "hex": "#310f2d",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 45
  },
  "hsl": {
    "h": 307.059,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23711,
    "c": 0.07112,
    "h": 332.4
  },
  "luminance": 0.01184
}

Semantic roles & 50–950 ramp

primary
#310F2D
secondary
#316B38
accent
#DD5C4B
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070205
muted
#7A787A

Preview Lab

Preview with #310F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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