#310B2D#310B2D

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

Color values

HEX#310B2D
RGBrgb(49, 11, 45)
HSLhsl(306, 63%, 12%)
HSVhsv(306, 78%, 19%)
CMYKcmyk(0%, 77.6%, 8.2%, 80.8%)
CIE-LABlab(9.66, 24.15, -13.31)
CIE-LCHlch(9.66, 27.57, 331.15°)
OKLaboklab(23.14% 0.0693 -0.0365)
OKLCHoklch(23.14% 0.078 332.2)
XYZxyz(1.8599, 1.0819, 2.5930)
Luminance0.0108 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B2D #0B310F
analogous
#220B31 #310B2D #310B1A
triadic
#310B2D #2D310B #0B2D31
tetradic
#310B2D #31220B #0B310F #0B1A31
square
#310B2D #31220B #0B310F #0B1A31
split-complementary
#310B2D #1A310B #0B3122
monochromatic
#190617 #190617 #310B2D #63165B #952189

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##310B2D#FFFFFF#000000##FFFFFF
##310B2D1.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)
#09172E
Deuteranopia (green-blind)
#161D2C
Tritanopia (blue-blind)
#330E1A
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310b2d;
/* rgb */ color: rgb(49, 11, 45);
/* oklch */ color: oklch(23.1% 0.078 332.2);
Tailwind
colors: {
  custom: {
    50: '#6b4d66',
    500: '#310b2d',
    950: '#000000',
  },
}
SCSS
$custom: #310b2d;
$custom-light: #6b4d66;
$custom-dark: #000000;
JSON
{
  "hex": "#310b2d",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 45
  },
  "hsl": {
    "h": 306.316,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.23138,
    "c": 0.07827,
    "h": 332.2
  },
  "luminance": 0.01082
}

Semantic roles & 50–950 ramp

primary
#310B2D
secondary
#2A6E31
accent
#E65341
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #310B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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