#310739#310739

#310739 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.5% C 0.097 H 320.6°. Best body text is #FFFFFF at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#310739
RGBrgb(49, 7, 57)
HSLhsl(290, 78%, 13%)
HSVhsv(290, 88%, 22%)
CMYKcmyk(14%, 87.7%, 0%, 77.6%)
CIE-LABlab(9.80, 28.66, -21.85)
CIE-LCHlch(9.80, 36.04, 322.68°)
OKLaboklab(23.51% 0.0747 -0.0612)
OKLCHoklch(23.51% 0.097 320.6)
XYZxyz(2.0810, 1.1004, 3.9729)
Luminance0.0110 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310739 #0F3907
analogous
#180739 #310739 #390728
triadic
#310739 #393107 #073931
tetradic
#310739 #391807 #0F3907 #072839
square
#310739 #391807 #0F3907 #072839
split-complementary
#310739 #283907 #073918
monochromatic
#17031B #17031B #310739 #600E70 #8F14A6

Accessibility & contrast

On white

17.21
#310739 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310739
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310739#FFFFFF#000000##FFFFFF
##3107391.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183A
Deuteranopia (green-blind)
#0C1D38
Tritanopia (blue-blind)
#31111F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310739;
/* rgb */ color: rgb(49, 7, 57);
/* oklch */ color: oklch(23.5% 0.097 320.6);
Tailwind
colors: {
  custom: {
    50: '#6b4c70',
    500: '#310739',
    950: '#000000',
  },
}
SCSS
$custom: #310739;
$custom-light: #6b4c70;
$custom-dark: #000000;
JSON
{
  "hex": "#310739",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 57
  },
  "hsl": {
    "h": 290.4,
    "s": 78.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23511,
    "c": 0.09658,
    "h": 320.6
  },
  "luminance": 0.011
}

Semantic roles & 50–950 ramp

primary
#310739
secondary
#317923
accent
#F53352
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #310739

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

Preview Lab → · Contrast checker → · Palette generator →

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