#310D2E#310D2E

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

Color values

HEX#310D2E
RGBrgb(49, 13, 46)
HSLhsl(305, 58%, 12%)
HSVhsv(305, 73%, 19%)
CMYKcmyk(0%, 73.5%, 6.1%, 80.8%)
CIE-LABlab(10.09, 23.31, -13.36)
CIE-LCHlch(10.09, 26.87, 330.19°)
OKLaboklab(23.48% 0.0664 -0.0366)
OKLCHoklch(23.48% 0.076 331.1)
XYZxyz(1.9037, 1.1382, 2.7037)
Luminance0.0114 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D2E #0D3110
analogous
#220D31 #310D2E #310D1C
triadic
#310D2E #2E310D #0D2E31
tetradic
#310D2E #31220D #0D3110 #0D1C31
square
#310D2E #31220D #0D3110 #0D1C31
split-complementary
#310D2E #1C310D #0D3122
monochromatic
#180617 #180617 #310D2E #611A5B #922789

Accessibility & contrast

On white

17.11
#310D2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310D2E
17.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D2E#FFFFFF#000000##FFFFFF
##310D2E1.0017.111.2317.11
#FFFFFF17.111.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B182F
Deuteranopia (green-blind)
#171D2D
Tritanopia (blue-blind)
#33101B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310d2e;
/* rgb */ color: rgb(49, 13, 46);
/* oklch */ color: oklch(23.5% 0.076 331.1);
Tailwind
colors: {
  custom: {
    50: '#6b4e67',
    500: '#310d2e',
    950: '#000000',
  },
}
SCSS
$custom: #310d2e;
$custom-light: #6b4e67;
$custom-dark: #000000;
JSON
{
  "hex": "#310d2e",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 46
  },
  "hsl": {
    "h": 305,
    "s": 58.065,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23476,
    "c": 0.07581,
    "h": 331.1
  },
  "luminance": 0.01138
}

Semantic roles & 50–950 ramp

primary
#310D2E
secondary
#2E6C33
accent
#E15347
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #310D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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