#310A2C#310A2C

#310A2C is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 22.9% C 0.079 H 333.4°. Best body text is #FFFFFF at 17.35:1 contrast (WCAG AA passes).

Color values

HEX#310A2C
RGBrgb(49, 10, 44)
HSLhsl(308, 66%, 12%)
HSVhsv(308, 80%, 19%)
CMYKcmyk(0%, 79.6%, 10.2%, 80.8%)
CIE-LABlab(9.42, 24.45, -12.94)
CIE-LCHlch(9.42, 27.66, 332.11°)
OKLaboklab(22.95% 0.0706 -0.0354)
OKLCHoklch(22.95% 0.079 333.4)
XYZxyz(1.8298, 1.0520, 2.4891)
Luminance0.0105 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A2C #0A310F
analogous
#230A31 #310A2C #310A19
triadic
#310A2C #2C310A #0A2C31
tetradic
#310A2C #31230A #0A310F #0A1931
square
#310A2C #31230A #0A310F #0A1931
split-complementary
#310A2C #19310A #0A3123
monochromatic
#190517 #190517 #310A2C #64145A #971F87

Accessibility & contrast

On white

17.35
#310A2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#310A2C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310A2C
17.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A2C#FFFFFF#000000##FFFFFF
##310A2C1.0017.351.2117.35
#FFFFFF17.351.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09172D
Deuteranopia (green-blind)
#161C2B
Tritanopia (blue-blind)
#340D19
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310a2c;
/* rgb */ color: rgb(49, 10, 44);
/* oklch */ color: oklch(22.9% 0.079 333.4);
Tailwind
colors: {
  custom: {
    50: '#6b4d65',
    500: '#310a2c',
    950: '#000000',
  },
}
SCSS
$custom: #310a2c;
$custom-light: #6b4d65;
$custom-dark: #000000;
JSON
{
  "hex": "#310a2c",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 44
  },
  "hsl": {
    "h": 307.692,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22945,
    "c": 0.07895,
    "h": 333.4
  },
  "luminance": 0.01052
}

Semantic roles & 50–950 ramp

primary
#310A2C
secondary
#296E31
accent
#E9553F
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #310A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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