#310A2D#310A2D

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

Color values

HEX#310A2D
RGBrgb(49, 10, 45)
HSLhsl(306, 66%, 12%)
HSVhsv(306, 80%, 19%)
CMYKcmyk(0%, 79.6%, 8.2%, 80.8%)
CIE-LABlab(9.48, 24.64, -13.58)
CIE-LCHlch(9.48, 28.14, 331.14°)
OKLaboklab(23.01% 0.0707 -0.0373)
OKLCHoklch(23.01% 0.08 332.2)
XYZxyz(1.8488, 1.0597, 2.5893)
Luminance0.0106 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A2D #0A310E
analogous
#220A31 #310A2D #310A1A
triadic
#310A2D #2D310A #0A2D31
tetradic
#310A2D #31220A #0A310E #0A1A31
square
#310A2D #31220A #0A310E #0A1A31
split-complementary
#310A2D #1A310A #0A3122
monochromatic
#190517 #190517 #310A2D #64145C #971F8A

Accessibility & contrast

On white

17.33
#310A2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310A2D
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A2D#FFFFFF#000000##FFFFFF
##310A2D1.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08172E
Deuteranopia (green-blind)
#161C2C
Tritanopia (blue-blind)
#330E1A
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310a2d;
/* rgb */ color: rgb(49, 10, 45);
/* oklch */ color: oklch(23.0% 0.080 332.2);
Tailwind
colors: {
  custom: {
    50: '#6b4d66',
    500: '#310a2d',
    950: '#000000',
  },
}
SCSS
$custom: #310a2d;
$custom-light: #6b4d66;
$custom-dark: #000000;
JSON
{
  "hex": "#310a2d",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 45
  },
  "hsl": {
    "h": 306.154,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.2301,
    "c": 0.07991,
    "h": 332.2
  },
  "luminance": 0.0106
}

Semantic roles & 50–950 ramp

primary
#310A2D
secondary
#296E30
accent
#E9503F
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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