#310A2E#310A2E

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

Color values

HEX#310A2E
RGBrgb(49, 10, 46)
HSLhsl(305, 66%, 12%)
HSVhsv(305, 80%, 19%)
CMYKcmyk(0%, 79.6%, 6.1%, 80.8%)
CIE-LABlab(9.54, 24.85, -14.23)
CIE-LCHlch(9.54, 28.63, 330.21°)
OKLaboklab(23.08% 0.0708 -0.0391)
OKLCHoklch(23.08% 0.081 331.1)
XYZxyz(1.8683, 1.0674, 2.6919)
Luminance0.0107 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A2E #0A310D
analogous
#210A31 #310A2E #310A1B
triadic
#310A2E #2E310A #0A2E31
tetradic
#310A2E #31210A #0A310D #0A1B31
square
#310A2E #31210A #0A310D #0A1B31
split-complementary
#310A2E #1B310A #0A3121
monochromatic
#190518 #190518 #310A2E #64145E #971F8D

Accessibility & contrast

On white

17.31
#310A2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310A2E
17.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A2E#FFFFFF#000000##FFFFFF
##310A2E1.0017.311.2117.31
#FFFFFF17.311.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07172F
Deuteranopia (green-blind)
#151C2D
Tritanopia (blue-blind)
#330E1A
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310a2e;
/* rgb */ color: rgb(49, 10, 46);
/* oklch */ color: oklch(23.1% 0.081 331.1);
Tailwind
colors: {
  custom: {
    50: '#6b4d67',
    500: '#310a2e',
    950: '#000000',
  },
}
SCSS
$custom: #310a2e;
$custom-light: #6b4d67;
$custom-dark: #000000;
JSON
{
  "hex": "#310a2e",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 46
  },
  "hsl": {
    "h": 304.615,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.23075,
    "c": 0.08088,
    "h": 331.1
  },
  "luminance": 0.01067
}

Semantic roles & 50–950 ramp

primary
#310A2E
secondary
#296E2E
accent
#E94C3F
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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