#310C30#310C30

#310C30 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.5% C 0.080 H 328.8°. Best body text is #FFFFFF at 17.13:1 contrast (WCAG AA passes).

Color values

HEX#310C30
RGBrgb(49, 12, 48)
HSLhsl(302, 61%, 12%)
HSVhsv(302, 76%, 19%)
CMYKcmyk(0%, 75.5%, 2%, 80.8%)
CIE-LABlab(10.03, 24.27, -14.94)
CIE-LCHlch(10.03, 28.49, 328.38°)
OKLaboklab(23.47% 0.0681 -0.0412)
OKLCHoklch(23.47% 0.08 328.8)
XYZxyz(1.9316, 1.1294, 2.9120)
Luminance0.0113 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C30 #0C310D
analogous
#200C31 #310C30 #310C1E
triadic
#310C30 #30310C #0C3031
tetradic
#310C30 #31200C #0C310D #0C1E31
square
#310C30 #31200C #0C310D #0C1E31
split-complementary
#310C30 #1E310C #0C3120
monochromatic
#190618 #190618 #310C30 #621860 #932490

Accessibility & contrast

On white

17.13
#310C30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C30
17.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C30#FFFFFF#000000##FFFFFF
##310C301.0017.131.2317.13
#FFFFFF17.131.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081831
Deuteranopia (green-blind)
#151D2F
Tritanopia (blue-blind)
#33101C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310c30;
/* rgb */ color: rgb(49, 12, 48);
/* oklch */ color: oklch(23.5% 0.080 328.8);
Tailwind
colors: {
  custom: {
    50: '#6b4e68',
    500: '#310c30',
    950: '#000000',
  },
}
SCSS
$custom: #310c30;
$custom-light: #6b4e68;
$custom-dark: #000000;
JSON
{
  "hex": "#310c30",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 48
  },
  "hsl": {
    "h": 301.622,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23468,
    "c": 0.07959,
    "h": 328.8
  },
  "luminance": 0.01129
}

Semantic roles & 50–950 ramp

primary
#310C30
secondary
#2C6D2E
accent
#E44844
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #310C30

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

Preview Lab → · Contrast checker → · Palette generator →

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