#310736#310736

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

Color values

HEX#310736
RGBrgb(49, 7, 54)
HSLhsl(294, 77%, 12%)
HSVhsv(294, 87%, 21%)
CMYKcmyk(9.3%, 87%, 0%, 78.8%)
CIE-LABlab(9.57, 28.00, -20.04)
CIE-LCHlch(9.57, 34.44, 324.41°)
OKLaboklab(23.28% 0.075 -0.056)
OKLCHoklch(23.28% 0.094 323.3)
XYZxyz(2.0084, 1.0714, 3.5903)
Luminance0.0107 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310736 #0C3607
analogous
#1A0736 #310736 #360724
triadic
#310736 #363107 #073631
tetradic
#310736 #361A07 #0C3607 #072436
square
#310736 #361A07 #0C3607 #072436
split-complementary
#310736 #243607 #07361A
monochromatic
#19041B #19041B #310736 #620E6C #9315A2

Accessibility & contrast

On white

17.30
#310736 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310736
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310736#FFFFFF#000000##FFFFFF
##3107361.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001737
Deuteranopia (green-blind)
#0F1C35
Tritanopia (blue-blind)
#32101E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310736;
/* rgb */ color: rgb(49, 7, 54);
/* oklch */ color: oklch(23.3% 0.094 323.3);
Tailwind
colors: {
  custom: {
    50: '#6b4c6d',
    500: '#310736',
    950: '#000000',
  },
}
SCSS
$custom: #310736;
$custom-light: #6b4c6d;
$custom-dark: #000000;
JSON
{
  "hex": "#310736",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 54
  },
  "hsl": {
    "h": 293.617,
    "s": 77.049,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23275,
    "c": 0.09357,
    "h": 323.3
  },
  "luminance": 0.01071
}

Semantic roles & 50–950 ramp

primary
#310736
secondary
#2C7623
accent
#F43449
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #310736

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

Preview Lab → · Contrast checker → · Palette generator →

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