#310C32#310C32

#310C32 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.6% C 0.082 H 326.7°. Best body text is #FFFFFF at 17.08:1 contrast (WCAG AA passes).

Color values

HEX#310C32
RGBrgb(49, 12, 50)
HSLhsl(298, 61%, 12%)
HSVhsv(298, 76%, 20%)
CMYKcmyk(2%, 76%, 0%, 80.4%)
CIE-LABlab(10.16, 24.70, -16.20)
CIE-LCHlch(10.16, 29.53, 326.74°)
OKLaboklab(23.6% 0.0683 -0.0448)
OKLCHoklch(23.6% 0.082 326.7)
XYZxyz(1.9738, 1.1463, 3.1343)
Luminance0.0115 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C32 #0D320C
analogous
#1E0C32 #310C32 #320C20
triadic
#310C32 #32310C #0C3231
tetradic
#310C32 #321E0C #0D320C #0C2032
square
#310C32 #321E0C #0D320C #0C2032
split-complementary
#310C32 #20320C #0C321E
monochromatic
#180619 #180619 #310C32 #611863 #922495

Accessibility & contrast

On white

17.08
#310C32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C32
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C32#FFFFFF#000000##FFFFFF
##310C321.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071933
Deuteranopia (green-blind)
#141D31
Tritanopia (blue-blind)
#33111D
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310c32;
/* rgb */ color: rgb(49, 12, 50);
/* oklch */ color: oklch(23.6% 0.082 326.7);
Tailwind
colors: {
  custom: {
    50: '#6b4e6a',
    500: '#310c32',
    950: '#000000',
  },
}
SCSS
$custom: #310c32;
$custom-light: #6b4e6a;
$custom-dark: #000000;
JSON
{
  "hex": "#310c32",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 50
  },
  "hsl": {
    "h": 298.421,
    "s": 61.29,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23603,
    "c": 0.08167,
    "h": 326.7
  },
  "luminance": 0.01146
}

Semantic roles & 50–950 ramp

primary
#310C32
secondary
#2E6E2C
accent
#E44348
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #310C32

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

Preview Lab → · Contrast checker → · Palette generator →

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