#310935#310935

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

Color values

HEX#310935
RGBrgb(49, 9, 53)
HSLhsl(295, 71%, 12%)
HSVhsv(295, 83%, 21%)
CMYKcmyk(7.5%, 83%, 0%, 79.2%)
CIE-LABlab(9.84, 26.81, -18.89)
CIE-LCHlch(9.84, 32.80, 324.84°)
OKLaboklab(23.44% 0.0724 -0.0526)
OKLCHoklch(23.44% 0.089 324)
XYZxyz(2.0069, 1.1055, 3.4751)
Luminance0.0111 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310935 #0D3509
analogous
#1B0935 #310935 #350923
triadic
#310935 #353109 #093531
tetradic
#310935 #351B09 #0D3509 #092335
square
#310935 #351B09 #0D3509 #092335
split-complementary
#310935 #233509 #09351B
monochromatic
#18041A #18041A #310935 #611269 #921B9E

Accessibility & contrast

On white

17.20
#310935 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310935
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310935#FFFFFF#000000##FFFFFF
##3109351.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011836
Deuteranopia (green-blind)
#111D34
Tritanopia (blue-blind)
#32101E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310935;
/* rgb */ color: rgb(49, 9, 53);
/* oklch */ color: oklch(23.4% 0.089 324.0);
Tailwind
colors: {
  custom: {
    50: '#6b4d6c',
    500: '#310935',
    950: '#000000',
  },
}
SCSS
$custom: #310935;
$custom-light: #6b4d6c;
$custom-dark: #000000;
JSON
{
  "hex": "#310935",
  "rgb": {
    "r": 49,
    "g": 9,
    "b": 53
  },
  "hsl": {
    "h": 294.545,
    "s": 70.968,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23443,
    "c": 0.08947,
    "h": 324
  },
  "luminance": 0.01105
}

Semantic roles & 50–950 ramp

primary
#310935
secondary
#2E7327
accent
#EE3A4A
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #310935

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

Preview Lab → · Contrast checker → · Palette generator →

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