#310347#310347

#310347 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.3% C 0.116 H 310.9°. Best body text is #FFFFFF at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#310347
RGBrgb(49, 3, 71)
HSLhsl(281, 92%, 15%)
HSVhsv(281, 96%, 28%)
CMYKcmyk(31%, 95.8%, 0%, 72.2%)
CIE-LABlab(10.36, 33.81, -30.91)
CIE-LCHlch(10.36, 45.81, 317.57°)
OKLaboklab(24.28% 0.076 -0.0878)
OKLCHoklch(24.28% 0.116 310.9)
XYZxyz(2.4363, 1.1731, 6.0581)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310347 #194703
analogous
#0F0347 #310347 #47033B
triadic
#310347 #473103 #034731
tetradic
#310347 #470F03 #194703 #033B47
square
#310347 #470F03 #194703 #033B47
split-complementary
#310347 #3B4703 #03470F
monochromatic
#14011D #14011D #310347 #5A0582 #8208BC

Accessibility & contrast

On white

17.01
#310347 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#310347 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310347
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310347#FFFFFF#000000##FFFFFF
##3103471.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A49
Deuteranopia (green-blind)
#001D46
Tritanopia (blue-blind)
#2E1527
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310347;
/* rgb */ color: rgb(49, 3, 71);
/* oklch */ color: oklch(24.3% 0.116 310.9);
Tailwind
colors: {
  custom: {
    50: '#6d4b7b',
    500: '#310347',
    950: '#000000',
  },
}
SCSS
$custom: #310347;
$custom-light: #6d4b7b;
$custom-dark: #000000;
JSON
{
  "hex": "#310347",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 71
  },
  "hsl": {
    "h": 280.588,
    "s": 91.892,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24283,
    "c": 0.11615,
    "h": 310.9
  },
  "luminance": 0.01173
}

Semantic roles & 50–950 ramp

primary
#310347
secondary
#40881E
accent
#FF296E
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070109
muted
#7A777B

Preview Lab

Preview with #310347

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

Preview Lab → · Contrast checker → · Palette generator →

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