#310E2D#310E2D

#310E2D is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.6% C 0.073 H 332.3°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#310E2D
RGBrgb(49, 14, 45)
HSLhsl(307, 56%, 12%)
HSVhsv(307, 71%, 19%)
CMYKcmyk(0%, 71.4%, 8.2%, 80.8%)
CIE-LABlab(10.23, 22.56, -12.40)
CIE-LCHlch(10.23, 25.74, 331.20°)
OKLaboklab(23.56% 0.0646 -0.0339)
OKLCHoklch(23.56% 0.073 332.3)
XYZxyz(1.8973, 1.1566, 2.6054)
Luminance0.0116 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310E2D #0E3112
analogous
#240E31 #310E2D #310E1C
triadic
#310E2D #2D310E #0E2D31
tetradic
#310E2D #31240E #0E3112 #0E1C31
square
#310E2D #31240E #0E3112 #0E1C31
split-complementary
#310E2D #1C310E #0E3124
monochromatic
#180716 #180716 #310E2D #611C59 #902984

Accessibility & contrast

On white

17.05
#310E2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#310E2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310E2D
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310E2D#FFFFFF#000000##FFFFFF
##310E2D1.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D192E
Deuteranopia (green-blind)
#181E2C
Tritanopia (blue-blind)
#33111B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310e2d;
/* rgb */ color: rgb(49, 14, 45);
/* oklch */ color: oklch(23.6% 0.073 332.3);
Tailwind
colors: {
  custom: {
    50: '#6b4f66',
    500: '#310e2d',
    950: '#000000',
  },
}
SCSS
$custom: #310e2d;
$custom-light: #6b4f66;
$custom-dark: #000000;
JSON
{
  "hex": "#310e2d",
  "rgb": {
    "r": 49,
    "g": 14,
    "b": 45
  },
  "hsl": {
    "h": 306.857,
    "s": 55.556,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23559,
    "c": 0.07299,
    "h": 332.3
  },
  "luminance": 0.01157
}

Semantic roles & 50–950 ramp

primary
#310E2D
secondary
#2F6C36
accent
#DF5A49
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070205
muted
#7A787A

Preview Lab

Preview with #310E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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