#310E2F#310E2F

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

Color values

HEX#310E2F
RGBrgb(49, 14, 47)
HSLhsl(303, 56%, 12%)
HSVhsv(303, 71%, 19%)
CMYKcmyk(0%, 71.4%, 4.1%, 80.8%)
CIE-LABlab(10.35, 22.98, -13.69)
CIE-LCHlch(10.35, 26.75, 329.22°)
OKLaboklab(23.69% 0.0649 -0.0376)
OKLCHoklch(23.69% 0.075 329.9)
XYZxyz(1.9367, 1.1724, 2.8131)
Luminance0.0117 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310E2F #0E3110
analogous
#220E31 #310E2F #310E1D
triadic
#310E2F #2F310E #0E2F31
tetradic
#310E2F #31220E #0E3110 #0E1D31
square
#310E2F #31220E #0E3110 #0E1D31
split-complementary
#310E2F #1D310E #0E3122
monochromatic
#180717 #180717 #310E2F #611C5D #90298A

Accessibility & contrast

On white

17.01
#310E2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310E2F
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310E2F#FFFFFF#000000##FFFFFF
##310E2F1.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1930
Deuteranopia (green-blind)
#171E2E
Tritanopia (blue-blind)
#33121C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310e2f;
/* rgb */ color: rgb(49, 14, 47);
/* oklch */ color: oklch(23.7% 0.075 329.9);
Tailwind
colors: {
  custom: {
    50: '#6b4f67',
    500: '#310e2f',
    950: '#000000',
  },
}
SCSS
$custom: #310e2f;
$custom-light: #6b4f67;
$custom-dark: #000000;
JSON
{
  "hex": "#310e2f",
  "rgb": {
    "r": 49,
    "g": 14,
    "b": 47
  },
  "hsl": {
    "h": 303.429,
    "s": 55.556,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23685,
    "c": 0.07504,
    "h": 329.9
  },
  "luminance": 0.01172
}

Semantic roles & 50–950 ramp

primary
#310E2F
secondary
#2F6C33
accent
#DF5149
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #310E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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