#310743#310743

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

Color values

HEX#310743
RGBrgb(49, 7, 67)
HSLhsl(282, 81%, 15%)
HSVhsv(282, 90%, 26%)
CMYKcmyk(26.9%, 89.6%, 0%, 73.7%)
CIE-LABlab(10.63, 30.98, -27.65)
CIE-LCHlch(10.63, 41.52, 318.25°)
OKLaboklab(24.36% 0.0728 -0.0783)
OKLCHoklch(24.36% 0.107 312.9)
XYZxyz(2.3555, 1.2102, 5.4186)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310743 #194307
analogous
#130743 #310743 #430737
triadic
#310743 #433107 #074331
tetradic
#310743 #431307 #194307 #073743
square
#310743 #431307 #194307 #073743
split-complementary
#310743 #374307 #074313
monochromatic
#14031C #14031C #310743 #5A0D7A #8213B2

Accessibility & contrast

On white

16.91
#310743 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310743
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310743#FFFFFF#000000##FFFFFF
##3107431.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B45
Deuteranopia (green-blind)
#011E42
Tritanopia (blue-blind)
#2F1625
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310743;
/* rgb */ color: rgb(49, 7, 67);
/* oklch */ color: oklch(24.4% 0.107 312.9);
Tailwind
colors: {
  custom: {
    50: '#6c4d78',
    500: '#310743',
    950: '#000000',
  },
}
SCSS
$custom: #310743;
$custom-light: #6c4d78;
$custom-dark: #000000;
JSON
{
  "hex": "#310743",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 67
  },
  "hsl": {
    "h": 282,
    "s": 81.081,
    "l": 14.51
  },
  "oklch": {
    "l": 0.2436,
    "c": 0.10686,
    "h": 312.9
  },
  "luminance": 0.0121
}

Semantic roles & 50–950 ramp

primary
#310743
secondary
#408224
accent
#F7306C
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #310743

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

Preview Lab → · Contrast checker → · Palette generator →

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