#310F3A#310F3A

#310F3A is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.6% C 0.085 H 318.6°. Best body text is #FFFFFF at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#310F3A
RGBrgb(49, 15, 58)
HSLhsl(287, 59%, 14%)
HSVhsv(287, 74%, 23%)
CMYKcmyk(15.5%, 74.1%, 0%, 77.3%)
CIE-LABlab(11.28, 24.95, -20.21)
CIE-LCHlch(11.28, 32.10, 320.99°)
OKLaboklab(24.59% 0.0641 -0.0565)
OKLCHoklch(24.59% 0.085 318.6)
XYZxyz(2.2011, 1.3002, 4.1372)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F3A #183A0F
analogous
#1C0F3A #310F3A #3A0F2E
triadic
#310F3A #3A310F #0F3A31
tetradic
#310F3A #3A1C0F #183A0F #0F2E3A
square
#310F3A #3A1C0F #183A0F #0F2E3A
split-complementary
#310F3A #2E3A0F #0F3A1C
monochromatic
#150618 #150618 #310F3A #5A1C6B #83289B

Accessibility & contrast

On white

16.67
#310F3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#310F3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F3A
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F3A#FFFFFF#000000##FFFFFF
##310F3A1.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031C3B
Deuteranopia (green-blind)
#111F39
Tritanopia (blue-blind)
#311622
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310f3a;
/* rgb */ color: rgb(49, 15, 58);
/* oklch */ color: oklch(24.6% 0.085 318.6);
Tailwind
colors: {
  custom: {
    50: '#6b5070',
    500: '#310f3a',
    950: '#000000',
  },
}
SCSS
$custom: #310f3a;
$custom-light: #6b5070;
$custom-dark: #000000;
JSON
{
  "hex": "#310f3a",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 58
  },
  "hsl": {
    "h": 287.442,
    "s": 58.904,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24591,
    "c": 0.08548,
    "h": 318.6
  },
  "luminance": 0.013
}

Semantic roles & 50–950 ramp

primary
#310F3A
secondary
#3F7430
accent
#E24666
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #310F3A

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

Preview Lab → · Contrast checker → · Palette generator →

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