#310F2E#310F2E

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

Color values

HEX#310F2E
RGBrgb(49, 15, 46)
HSLhsl(305, 53%, 13%)
HSVhsv(305, 69%, 19%)
CMYKcmyk(0%, 69.4%, 6.1%, 80.8%)
CIE-LABlab(10.50, 22.21, -12.73)
CIE-LCHlch(10.50, 25.59, 330.18°)
OKLaboklab(23.77% 0.0632 -0.0348)
OKLCHoklch(23.77% 0.072 331.1)
XYZxyz(1.9306, 1.1920, 2.7126)
Luminance0.0119 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F2E #0F3112
analogous
#230F31 #310F2E #310F1D
triadic
#310F2E #2E310F #0F2E31
tetradic
#310F2E #31230F #0F3112 #0F1D31
square
#310F2E #31230F #0F3112 #0F1D31
split-complementary
#310F2E #1D310F #0F3123
monochromatic
#170716 #170716 #310F2E #601D5A #8F2C86

Accessibility & contrast

On white

16.96
#310F2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310F2E
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F2E#FFFFFF#000000##FFFFFF
##310F2E1.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310f2e;
/* rgb */ color: rgb(49, 15, 46);
/* oklch */ color: oklch(23.8% 0.072 331.1);
Tailwind
colors: {
  custom: {
    50: '#6a5066',
    500: '#310f2e',
    950: '#000000',
  },
}
SCSS
$custom: #310f2e;
$custom-light: #6a5066;
$custom-dark: #000000;
JSON
{
  "hex": "#310f2e",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 46
  },
  "hsl": {
    "h": 305.294,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23772,
    "c": 0.07215,
    "h": 331.1
  },
  "luminance": 0.01192
}

Semantic roles & 50–950 ramp

primary
#310F2E
secondary
#316B36
accent
#DD584B
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #310F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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