#310833#310833

#310833 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.2% C 0.089 H 326.0°. Best body text is #FFFFFF at 17.31:1 contrast (WCAG AA passes).

Color values

HEX#310833
RGBrgb(49, 8, 51)
HSLhsl(297, 73%, 12%)
HSVhsv(297, 84%, 20%)
CMYKcmyk(3.9%, 84.3%, 0%, 80%)
CIE-LABlab(9.53, 26.87, -17.93)
CIE-LCHlch(9.53, 32.30, 326.29°)
OKLaboklab(23.17% 0.0738 -0.0498)
OKLCHoklch(23.17% 0.089 326)
XYZxyz(1.9510, 1.0658, 3.2343)
Luminance0.0107 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310833 #0A3308
analogous
#1C0833 #310833 #330820
triadic
#310833 #333108 #083331
tetradic
#310833 #331C08 #0A3308 #082033
square
#310833 #331C08 #0A3308 #082033
split-complementary
#310833 #203308 #08331C
monochromatic
#19041A #19041A #310833 #641068 #97199D

Accessibility & contrast

On white

17.31
#310833 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#310833 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310833
17.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310833#FFFFFF#000000##FFFFFF
##3108331.0017.311.2117.31
#FFFFFF17.311.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011734
Deuteranopia (green-blind)
#121C32
Tritanopia (blue-blind)
#320F1C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310833;
/* rgb */ color: rgb(49, 8, 51);
/* oklch */ color: oklch(23.2% 0.089 326.0);
Tailwind
colors: {
  custom: {
    50: '#6b4c6b',
    500: '#310833',
    950: '#000000',
  },
}
SCSS
$custom: #310833;
$custom-light: #6b4c6b;
$custom-dark: #000000;
JSON
{
  "hex": "#310833",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 51
  },
  "hsl": {
    "h": 297.209,
    "s": 72.881,
    "l": 11.569
  },
  "oklch": {
    "l": 0.23173,
    "c": 0.089,
    "h": 326
  },
  "luminance": 0.01066
}

Semantic roles & 50–950 ramp

primary
#310833
secondary
#297225
accent
#F03841
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310833

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

Preview Lab → · Contrast checker → · Palette generator →

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