#310A2B#310A2B

#310A2B is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.9% C 0.078 H 334.5°. Best body text is #FFFFFF at 17.37:1 contrast (WCAG AA passes).

Color values

HEX#310A2B
RGBrgb(49, 10, 43)
HSLhsl(309, 66%, 12%)
HSVhsv(309, 80%, 19%)
CMYKcmyk(0%, 79.6%, 12.2%, 80.8%)
CIE-LABlab(9.36, 24.25, -12.29)
CIE-LCHlch(9.36, 27.19, 333.13°)
OKLaboklab(22.88% 0.0704 -0.0335)
OKLCHoklch(22.88% 0.078 334.5)
XYZxyz(1.8112, 1.0446, 2.3913)
Luminance0.0104 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A2B #0A3110
analogous
#240A31 #310A2B #310A18
triadic
#310A2B #2B310A #0A2B31
tetradic
#310A2B #31240A #0A3110 #0A1831
square
#310A2B #31240A #0A3110 #0A1831
split-complementary
#310A2B #18310A #0A3124
monochromatic
#190516 #190516 #310A2B #641458 #971F84

Accessibility & contrast

On white

17.37
#310A2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310A2B
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A2B#FFFFFF#000000##FFFFFF
##310A2B1.0017.371.2117.37
#FFFFFF17.371.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A172C
Deuteranopia (green-blind)
#171C2A
Tritanopia (blue-blind)
#340D19
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310a2b;
/* rgb */ color: rgb(49, 10, 43);
/* oklch */ color: oklch(22.9% 0.078 334.5);
Tailwind
colors: {
  custom: {
    50: '#6b4d64',
    500: '#310a2b',
    950: '#000000',
  },
}
SCSS
$custom: #310a2b;
$custom-light: #6b4d64;
$custom-dark: #000000;
JSON
{
  "hex": "#310a2b",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 43
  },
  "hsl": {
    "h": 309.231,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22882,
    "c": 0.07801,
    "h": 334.5
  },
  "luminance": 0.01044
}

Semantic roles & 50–950 ramp

primary
#310A2B
secondary
#296E33
accent
#E9593F
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #310A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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