#310A3A#310A3A

#310A3A is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.9% C 0.093 H 319.4°. Best body text is #FFFFFF at 17.00:1 contrast (WCAG AA passes).

Color values

HEX#310A3A
RGBrgb(49, 10, 58)
HSLhsl(289, 71%, 13%)
HSVhsv(289, 83%, 23%)
CMYKcmyk(15.5%, 82.8%, 0%, 77.3%)
CIE-LABlab(10.38, 27.47, -21.65)
CIE-LCHlch(10.38, 34.98, 321.76°)
OKLaboklab(23.94% 0.0708 -0.0607)
OKLCHoklch(23.94% 0.093 319.4)
XYZxyz(2.1388, 1.1756, 4.1164)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A3A #133A0A
analogous
#190A3A #310A3A #3A0A2B
triadic
#310A3A #3A310A #0A3A31
tetradic
#310A3A #3A190A #133A0A #0A2B3A
square
#310A3A #3A190A #133A0A #0A2B3A
split-complementary
#310A3A #2B3A0A #0A3A19
monochromatic
#16051A #16051A #310A3A #5D136E #891CA2

Accessibility & contrast

On white

17.00
#310A3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310A3A
17.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A3A#FFFFFF#000000##FFFFFF
##310A3A1.0017.001.2417.00
#FFFFFF17.001.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF17.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3B
Deuteranopia (green-blind)
#0E1E39
Tritanopia (blue-blind)
#311321
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310a3a;
/* rgb */ color: rgb(49, 10, 58);
/* oklch */ color: oklch(23.9% 0.093 319.4);
Tailwind
colors: {
  custom: {
    50: '#6b4d70',
    500: '#310a3a',
    950: '#000000',
  },
}
SCSS
$custom: #310a3a;
$custom-light: #6b4d70;
$custom-dark: #000000;
JSON
{
  "hex": "#310a3a",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 58
  },
  "hsl": {
    "h": 288.75,
    "s": 70.588,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23944,
    "c": 0.09324,
    "h": 319.4
  },
  "luminance": 0.01176
}

Semantic roles & 50–950 ramp

primary
#310A3A
secondary
#377728
accent
#ED3A5C
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #310A3A

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

Preview Lab → · Contrast checker → · Palette generator →

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