#310836#310836

#310836 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.4% C 0.092 H 323.2°. Best body text is #FFFFFF at 17.23:1 contrast (WCAG AA passes).

Color values

HEX#310836
RGBrgb(49, 8, 54)
HSLhsl(293, 74%, 12%)
HSVhsv(293, 85%, 21%)
CMYKcmyk(9.3%, 85.2%, 0%, 78.8%)
CIE-LABlab(9.74, 27.51, -19.77)
CIE-LCHlch(9.74, 33.88, 324.30°)
OKLaboklab(23.4% 0.0736 -0.0552)
OKLCHoklch(23.4% 0.092 323.2)
XYZxyz(2.0192, 1.0931, 3.5939)
Luminance0.0109 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310836 #0D3608
analogous
#1A0836 #310836 #360824
triadic
#310836 #363108 #083631
tetradic
#310836 #361A08 #0D3608 #082436
square
#310836 #361A08 #0D3608 #082436
split-complementary
#310836 #243608 #08361A
monochromatic
#18041B #18041B #310836 #61106B #9218A1

Accessibility & contrast

On white

17.23
#310836 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#310836 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310836
17.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310836#FFFFFF#000000##FFFFFF
##3108361.0017.231.2217.23
#FFFFFF17.231.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001837
Deuteranopia (green-blind)
#0F1D35
Tritanopia (blue-blind)
#32101E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310836;
/* rgb */ color: rgb(49, 8, 54);
/* oklch */ color: oklch(23.4% 0.092 323.2);
Tailwind
colors: {
  custom: {
    50: '#6b4c6d',
    500: '#310836',
    950: '#000000',
  },
}
SCSS
$custom: #310836;
$custom-light: #6b4c6d;
$custom-dark: #000000;
JSON
{
  "hex": "#310836",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 54
  },
  "hsl": {
    "h": 293.478,
    "s": 74.194,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23397,
    "c": 0.09202,
    "h": 323.2
  },
  "luminance": 0.01093
}

Semantic roles & 50–950 ramp

primary
#310836
secondary
#2E7525
accent
#F1374B
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #310836

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

Preview Lab → · Contrast checker → · Palette generator →

#310836 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva