#310C38#310C38

#310C38 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.0% C 0.088 H 320.9°. Best body text is #FFFFFF at 16.93:1 contrast (WCAG AA passes).

Color values

HEX#310C38
RGBrgb(49, 12, 56)
HSLhsl(290, 65%, 13%)
HSVhsv(290, 79%, 22%)
CMYKcmyk(12.5%, 78.6%, 0%, 78%)
CIE-LABlab(10.57, 26.05, -19.90)
CIE-LCHlch(10.57, 32.78, 322.62°)
OKLaboklab(24.03% 0.0684 -0.0556)
OKLCHoklch(24.03% 0.088 320.9)
XYZxyz(2.1118, 1.2015, 3.8613)
Luminance0.0120 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C38 #13380C
analogous
#1B0C38 #310C38 #380C29
triadic
#310C38 #38310C #0C3831
tetradic
#310C38 #381B0C #13380C #0C2938
square
#310C38 #381B0C #13380C #0C2938
split-complementary
#310C38 #29380C #0C381B
monochromatic
#160519 #160519 #310C38 #5D176A #89229D

Accessibility & contrast

On white

16.93
#310C38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#310C38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310C38
16.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C38#FFFFFF#000000##FFFFFF
##310C381.0016.931.2416.93
#FFFFFF16.931.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011A39
Deuteranopia (green-blind)
#111E37
Tritanopia (blue-blind)
#311420
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310c38;
/* rgb */ color: rgb(49, 12, 56);
/* oklch */ color: oklch(24.0% 0.088 320.9);
Tailwind
colors: {
  custom: {
    50: '#6b4e6f',
    500: '#310c38',
    950: '#000000',
  },
}
SCSS
$custom: #310c38;
$custom-light: #6b4e6f;
$custom-dark: #000000;
JSON
{
  "hex": "#310c38",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 56
  },
  "hsl": {
    "h": 290.455,
    "s": 64.706,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24034,
    "c": 0.08812,
    "h": 320.9
  },
  "luminance": 0.01201
}

Semantic roles & 50–950 ramp

primary
#310C38
secondary
#37742C
accent
#E8405B
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #310C38

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

Preview Lab → · Contrast checker → · Palette generator →

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