#310735#310735

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

Color values

HEX#310735
RGBrgb(49, 7, 53)
HSLhsl(295, 77%, 12%)
HSVhsv(295, 87%, 21%)
CMYKcmyk(7.5%, 86.8%, 0%, 79.2%)
CIE-LABlab(9.50, 27.79, -19.43)
CIE-LCHlch(9.50, 33.91, 325.03°)
OKLaboklab(23.2% 0.0751 -0.0542)
OKLCHoklch(23.2% 0.093 324.2)
XYZxyz(1.9852, 1.0621, 3.4679)
Luminance0.0106 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310735 #0B3507
analogous
#1A0735 #310735 #350722
triadic
#310735 #353107 #073531
tetradic
#310735 #351A07 #0B3507 #072235
square
#310735 #351A07 #0B3507 #072235
split-complementary
#310735 #223507 #07351A
monochromatic
#19041B #19041B #310735 #630E6B #9515A1

Accessibility & contrast

On white

17.32
#310735 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310735
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310735#FFFFFF#000000##FFFFFF
##3107351.0017.321.2117.32
#FFFFFF17.321.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001736
Deuteranopia (green-blind)
#101C34
Tritanopia (blue-blind)
#320F1D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310735;
/* rgb */ color: rgb(49, 7, 53);
/* oklch */ color: oklch(23.2% 0.093 324.2);
Tailwind
colors: {
  custom: {
    50: '#6b4c6c',
    500: '#310735',
    950: '#000000',
  },
}
SCSS
$custom: #310735;
$custom-light: #6b4c6c;
$custom-dark: #000000;
JSON
{
  "hex": "#310735",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 53
  },
  "hsl": {
    "h": 294.783,
    "s": 76.667,
    "l": 11.765
  },
  "oklch": {
    "l": 0.23198,
    "c": 0.09257,
    "h": 324.2
  },
  "luminance": 0.01062
}

Semantic roles & 50–950 ramp

primary
#310735
secondary
#2A7523
accent
#F33545
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #310735

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

Preview Lab → · Contrast checker → · Palette generator →

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