#310F3C#310F3C

#310F3C is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.7% C 0.088 H 316.9°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#310F3C
RGBrgb(49, 15, 60)
HSLhsl(285, 60%, 15%)
HSVhsv(285, 75%, 24%)
CMYKcmyk(18.3%, 75%, 0%, 76.5%)
CIE-LABlab(11.42, 25.43, -21.41)
CIE-LCHlch(11.42, 33.25, 319.91°)
OKLaboklab(24.74% 0.0641 -0.06)
OKLCHoklch(24.74% 0.088 316.9)
XYZxyz(2.2529, 1.3209, 4.4104)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F3C #1A3C0F
analogous
#1A0F3C #310F3C #3C0F31
triadic
#310F3C #3C310F #0F3C31
tetradic
#310F3C #3C1A0F #1A3C0F #0F313C
square
#310F3C #3C1A0F #1A3C0F #0F313C
split-complementary
#310F3C #313C0F #0F3C1A
monochromatic
#140618 #140618 #310F3C #591B6D #81279E

Accessibility & contrast

On white

16.61
#310F3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310F3C
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F3C#FFFFFF#000000##FFFFFF
##310F3C1.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011C3D
Deuteranopia (green-blind)
#101F3B
Tritanopia (blue-blind)
#301723
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310f3c;
/* rgb */ color: rgb(49, 15, 60);
/* oklch */ color: oklch(24.7% 0.088 316.9);
Tailwind
colors: {
  custom: {
    50: '#6b5072',
    500: '#310f3c',
    950: '#000000',
  },
}
SCSS
$custom: #310f3c;
$custom-light: #6b5072;
$custom-dark: #000000;
JSON
{
  "hex": "#310f3c",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 60
  },
  "hsl": {
    "h": 285.333,
    "s": 60,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24741,
    "c": 0.08781,
    "h": 316.9
  },
  "luminance": 0.01321
}

Semantic roles & 50–950 ramp

primary
#310F3C
secondary
#417630
accent
#E3456B
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070208
muted
#7A787B

Preview Lab

Preview with #310F3C

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

Preview Lab → · Contrast checker → · Palette generator →

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