#310C2E#310C2E

#310C2E is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.3% C 0.078 H 331.1°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#310C2E
RGBrgb(49, 12, 46)
HSLhsl(305, 61%, 12%)
HSVhsv(305, 76%, 19%)
CMYKcmyk(0%, 75.5%, 6.1%, 80.8%)
CIE-LABlab(9.90, 23.84, -13.66)
CIE-LCHlch(9.90, 27.48, 330.19°)
OKLaboklab(23.34% 0.0679 -0.0375)
OKLCHoklch(23.34% 0.078 331.1)
XYZxyz(1.8912, 1.1133, 2.6995)
Luminance0.0111 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C2E #0C310F
analogous
#220C31 #310C2E #310C1C
triadic
#310C2E #2E310C #0C2E31
tetradic
#310C2E #31220C #0C310F #0C1C31
square
#310C2E #31220C #0C310F #0C1C31
split-complementary
#310C2E #1C310C #0C3122
monochromatic
#190617 #190617 #310C2E #62185C #93248A

Accessibility & contrast

On white

17.18
#310C2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#310C2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310C2E
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C2E#FFFFFF#000000##FFFFFF
##310C2E1.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A182F
Deuteranopia (green-blind)
#161D2D
Tritanopia (blue-blind)
#33101B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310c2e;
/* rgb */ color: rgb(49, 12, 46);
/* oklch */ color: oklch(23.3% 0.078 331.1);
Tailwind
colors: {
  custom: {
    50: '#6b4e67',
    500: '#310c2e',
    950: '#000000',
  },
}
SCSS
$custom: #310c2e;
$custom-light: #6b4e67;
$custom-dark: #000000;
JSON
{
  "hex": "#310c2e",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 46
  },
  "hsl": {
    "h": 304.865,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23337,
    "c": 0.07756,
    "h": 331.1
  },
  "luminance": 0.01113
}

Semantic roles & 50–950 ramp

primary
#310C2E
secondary
#2C6D31
accent
#E45144
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #310C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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