#310744#310744

#310744 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.4% C 0.108 H 312.2°. Best body text is #FFFFFF at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#310744
RGBrgb(49, 7, 68)
HSLhsl(281, 81%, 15%)
HSVhsv(281, 90%, 27%)
CMYKcmyk(27.9%, 89.7%, 0%, 73.3%)
CIE-LABlab(10.72, 31.22, -28.21)
CIE-LCHlch(10.72, 42.07, 317.90°)
OKLaboklab(24.45% 0.0725 -0.0799)
OKLCHoklch(24.45% 0.108 312.2)
XYZxyz(2.3858, 1.2224, 5.5780)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310744 #1A4407
analogous
#120744 #310744 #440739
triadic
#310744 #443107 #074431
tetradic
#310744 #441207 #1A4407 #073944
square
#310744 #441207 #1A4407 #073944
split-complementary
#310744 #394407 #074412
monochromatic
#14031C #14031C #310744 #590D7B #8112B3

Accessibility & contrast

On white

16.88
#310744 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#310744 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310744
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310744#FFFFFF#000000##FFFFFF
##3107441.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B46
Deuteranopia (green-blind)
#001E43
Tritanopia (blue-blind)
#2F1626
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310744;
/* rgb */ color: rgb(49, 7, 68);
/* oklch */ color: oklch(24.4% 0.108 312.2);
Tailwind
colors: {
  custom: {
    50: '#6c4d78',
    500: '#310744',
    950: '#000000',
  },
}
SCSS
$custom: #310744;
$custom-light: #6c4d78;
$custom-dark: #000000;
JSON
{
  "hex": "#310744",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 68
  },
  "hsl": {
    "h": 281.311,
    "s": 81.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24449,
    "c": 0.1079,
    "h": 312.2
  },
  "luminance": 0.01222
}

Semantic roles & 50–950 ramp

primary
#310744
secondary
#418324
accent
#F8306E
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #310744

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

Preview Lab → · Contrast checker → · Palette generator →

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