#310835#310835

#310835 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.3% C 0.091 H 324.1°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#310835
RGBrgb(49, 8, 53)
HSLhsl(295, 74%, 12%)
HSVhsv(295, 85%, 21%)
CMYKcmyk(7.5%, 84.9%, 0%, 79.2%)
CIE-LABlab(9.67, 27.30, -19.16)
CIE-LCHlch(9.67, 33.35, 324.94°)
OKLaboklab(23.32% 0.0737 -0.0534)
OKLCHoklch(23.32% 0.091 324.1)
XYZxyz(1.9960, 1.0838, 3.4715)
Luminance0.0108 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310835 #0C3508
analogous
#1B0835 #310835 #350823
triadic
#310835 #353108 #083531
tetradic
#310835 #351B08 #0C3508 #082335
square
#310835 #351B08 #0C3508 #082335
split-complementary
#310835 #233508 #08351B
monochromatic
#19041B #19041B #310835 #62106A #93189F

Accessibility & contrast

On white

17.26
#310835 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##310835#FFFFFF#000000##FFFFFF
##3108351.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)
#001836
Deuteranopia (green-blind)
#101C34
Tritanopia (blue-blind)
#32101E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310835;
/* rgb */ color: rgb(49, 8, 53);
/* oklch */ color: oklch(23.3% 0.091 324.1);
Tailwind
colors: {
  custom: {
    50: '#6b4c6c',
    500: '#310835',
    950: '#000000',
  },
}
SCSS
$custom: #310835;
$custom-light: #6b4c6c;
$custom-dark: #000000;
JSON
{
  "hex": "#310835",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 53
  },
  "hsl": {
    "h": 294.667,
    "s": 73.77,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23322,
    "c": 0.09101,
    "h": 324.1
  },
  "luminance": 0.01084
}

Semantic roles & 50–950 ramp

primary
#310835
secondary
#2C7425
accent
#F03748
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #310835

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

Preview Lab → · Contrast checker → · Palette generator →

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