#310738#310738

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

Color values

HEX#310738
RGBrgb(49, 7, 56)
HSLhsl(291, 78%, 12%)
HSVhsv(291, 88%, 22%)
CMYKcmyk(12.5%, 87.5%, 0%, 78%)
CIE-LABlab(9.72, 28.44, -21.25)
CIE-LCHlch(9.72, 35.50, 323.23°)
OKLaboklab(23.43% 0.0748 -0.0595)
OKLCHoklch(23.43% 0.096 321.5)
XYZxyz(2.0563, 1.0906, 3.8428)
Luminance0.0109 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310738 #0E3807
analogous
#190738 #310738 #380726
triadic
#310738 #383107 #073831
tetradic
#310738 #381907 #0E3807 #072638
square
#310738 #381907 #0E3807 #072638
split-complementary
#310738 #263807 #073819
monochromatic
#18031B #18031B #310738 #610E6E #9015A5

Accessibility & contrast

On white

17.24
#310738 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310738
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310738#FFFFFF#000000##FFFFFF
##3107381.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001839
Deuteranopia (green-blind)
#0D1C37
Tritanopia (blue-blind)
#32111F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310738;
/* rgb */ color: rgb(49, 7, 56);
/* oklch */ color: oklch(23.4% 0.096 321.5);
Tailwind
colors: {
  custom: {
    50: '#6b4c6f',
    500: '#310738',
    950: '#000000',
  },
}
SCSS
$custom: #310738;
$custom-light: #6b4c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#310738",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 56
  },
  "hsl": {
    "h": 291.429,
    "s": 77.778,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23431,
    "c": 0.09557,
    "h": 321.5
  },
  "luminance": 0.0109
}

Semantic roles & 50–950 ramp

primary
#310738
secondary
#2F7823
accent
#F4344F
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #310738

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

Preview Lab → · Contrast checker → · Palette generator →

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