#310B2E#310B2E

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

Color values

HEX#310B2E
RGBrgb(49, 11, 46)
HSLhsl(305, 63%, 12%)
HSVhsv(305, 78%, 19%)
CMYKcmyk(0%, 77.6%, 6.1%, 80.8%)
CIE-LABlab(9.72, 24.36, -13.95)
CIE-LCHlch(9.72, 28.07, 330.20°)
OKLaboklab(23.2% 0.0694 -0.0383)
OKLCHoklch(23.2% 0.079 331.1)
XYZxyz(1.8794, 1.0897, 2.6956)
Luminance0.0109 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B2E #0B310E
analogous
#210B31 #310B2E #310B1B
triadic
#310B2E #2E310B #0B2E31
tetradic
#310B2E #31210B #0B310E #0B1B31
square
#310B2E #31210B #0B310E #0B1B31
split-complementary
#310B2E #1B310B #0B3121
monochromatic
#190617 #190617 #310B2E #63165D #95218C

Accessibility & contrast

On white

17.24
#310B2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B2E
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B2E#FFFFFF#000000##FFFFFF
##310B2E1.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09182F
Deuteranopia (green-blind)
#161D2D
Tritanopia (blue-blind)
#330F1B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310b2e;
/* rgb */ color: rgb(49, 11, 46);
/* oklch */ color: oklch(23.2% 0.079 331.1);
Tailwind
colors: {
  custom: {
    50: '#6b4d67',
    500: '#310b2e',
    950: '#000000',
  },
}
SCSS
$custom: #310b2e;
$custom-light: #6b4d67;
$custom-dark: #000000;
JSON
{
  "hex": "#310b2e",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 46
  },
  "hsl": {
    "h": 304.737,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.23203,
    "c": 0.07925,
    "h": 331.1
  },
  "luminance": 0.0109
}

Semantic roles & 50–950 ramp

primary
#310B2E
secondary
#2A6E30
accent
#E64E41
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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