#310A30#310A30

#310A30 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.2% C 0.083 H 328.9°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#310A30
RGBrgb(49, 10, 48)
HSLhsl(302, 66%, 12%)
HSVhsv(302, 80%, 19%)
CMYKcmyk(0%, 79.6%, 2%, 80.8%)
CIE-LABlab(9.67, 25.26, -15.50)
CIE-LCHlch(9.67, 29.64, 328.46°)
OKLaboklab(23.21% 0.071 -0.0428)
OKLCHoklch(23.21% 0.083 328.9)
XYZxyz(1.9086, 1.0836, 2.9044)
Luminance0.0108 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A30 #0A310B
analogous
#1F0A31 #310A30 #310A1D
triadic
#310A30 #30310A #0A3031
tetradic
#310A30 #311F0A #0A310B #0A1D31
square
#310A30 #311F0A #0A310B #0A1D31
split-complementary
#310A30 #1D310A #0A311F
monochromatic
#190519 #190519 #310A30 #641462 #971F94

Accessibility & contrast

On white

17.26
#310A30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310A30
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A30#FFFFFF#000000##FFFFFF
##310A301.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061731
Deuteranopia (green-blind)
#141D2F
Tritanopia (blue-blind)
#330F1B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310a30;
/* rgb */ color: rgb(49, 10, 48);
/* oklch */ color: oklch(23.2% 0.083 328.9);
Tailwind
colors: {
  custom: {
    50: '#6b4d68',
    500: '#310a30',
    950: '#000000',
  },
}
SCSS
$custom: #310a30;
$custom-light: #6b4d68;
$custom-dark: #000000;
JSON
{
  "hex": "#310a30",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 48
  },
  "hsl": {
    "h": 301.538,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.23209,
    "c": 0.08285,
    "h": 328.9
  },
  "luminance": 0.01083
}

Semantic roles & 50–950 ramp

primary
#310A30
secondary
#296E2A
accent
#E9433F
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310A30

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

Preview Lab → · Contrast checker → · Palette generator →

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