#310737#310737

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

Color values

HEX#310737
RGBrgb(49, 7, 55)
HSLhsl(293, 77%, 12%)
HSVhsv(293, 87%, 22%)
CMYKcmyk(10.9%, 87.3%, 0%, 78.4%)
CIE-LABlab(9.65, 28.22, -20.65)
CIE-LCHlch(9.65, 34.97, 323.81°)
OKLaboklab(23.35% 0.0749 -0.0577)
OKLCHoklch(23.35% 0.095 322.4)
XYZxyz(2.0321, 1.0809, 3.7153)
Luminance0.0108 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310737 #0D3707
analogous
#190737 #310737 #370725
triadic
#310737 #373107 #073731
tetradic
#310737 #371907 #0D3707 #072537
square
#310737 #371907 #0D3707 #072537
split-complementary
#310737 #253707 #073719
monochromatic
#18031B #18031B #310737 #610E6D #9215A4

Accessibility & contrast

On white

17.27
#310737 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310737
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310737#FFFFFF#000000##FFFFFF
##3107371.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310737;
/* rgb */ color: rgb(49, 7, 55);
/* oklch */ color: oklch(23.4% 0.095 322.4);
Tailwind
colors: {
  custom: {
    50: '#6b4c6e',
    500: '#310737',
    950: '#000000',
  },
}
SCSS
$custom: #310737;
$custom-light: #6b4c6e;
$custom-dark: #000000;
JSON
{
  "hex": "#310737",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 55
  },
  "hsl": {
    "h": 292.5,
    "s": 77.419,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23353,
    "c": 0.09456,
    "h": 322.4
  },
  "luminance": 0.01081
}

Semantic roles & 50–950 ramp

primary
#310737
secondary
#2E7723
accent
#F4344C
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #310737

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

Preview Lab → · Contrast checker → · Palette generator →

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