#310231#310231

#310231 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.2% C 0.097 H 328.3°. Best body text is #FFFFFF at 17.74:1 contrast (WCAG AA passes).

Color values

HEX#310231
RGBrgb(49, 2, 49)
HSLhsl(300, 92%, 10%)
HSVhsv(300, 96%, 19%)
CMYKcmyk(0%, 95.9%, 0%, 80.8%)
CIE-LABlab(8.29, 29.62, -18.43)
CIE-LCHlch(8.29, 34.88, 328.11°)
OKLaboklab(22.25% 0.0827 -0.0512)
OKLCHoklch(22.25% 0.097 328.3)
XYZxyz(1.8427, 0.9183, 2.9853)
Luminance0.0092 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310231 #023102
analogous
#190231 #310231 #31021A
triadic
#310231 #313102 #023131
tetradic
#310231 #311902 #023102 #021931
square
#310231 #311902 #023102 #021931
split-complementary
#310231 #1A3102 #02311A
monochromatic
#1D011D #1D011D #310231 #6C046C #A707A7

Accessibility & contrast

On white

17.74
#310231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#310231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310231
17.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310231#FFFFFF#000000##FFFFFF
##3102311.0017.741.1817.74
#FFFFFF17.741.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001432
Deuteranopia (green-blind)
#0F1A30
Tritanopia (blue-blind)
#330919
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310231;
/* rgb */ color: rgb(49, 2, 49);
/* oklch */ color: oklch(22.2% 0.097 328.3);
Tailwind
colors: {
  custom: {
    50: '#6c4969',
    500: '#310231',
    950: '#000000',
  },
}
SCSS
$custom: #310231;
$custom-light: #6c4969;
$custom-dark: #000000;
JSON
{
  "hex": "#310231",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 49
  },
  "hsl": {
    "h": 300,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.22248,
    "c": 0.0973,
    "h": 328.3
  },
  "luminance": 0.00918
}

Semantic roles & 50–950 ramp

primary
#310231
secondary
#197519
accent
#FF2929
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310231

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

Preview Lab → · Contrast checker → · Palette generator →

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