#310734#310734

#310734 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.1% C 0.092 H 325.1°. Best body text is #FFFFFF at 17.35:1 contrast (WCAG AA passes).

Color values

HEX#310734
RGBrgb(49, 7, 52)
HSLhsl(296, 76%, 12%)
HSVhsv(296, 87%, 20%)
CMYKcmyk(5.8%, 86.5%, 0%, 79.6%)
CIE-LABlab(9.43, 27.58, -18.82)
CIE-LCHlch(9.43, 33.39, 325.69°)
OKLaboklab(23.12% 0.0751 -0.0524)
OKLCHoklch(23.12% 0.092 325.1)
XYZxyz(1.9624, 1.0530, 3.3480)
Luminance0.0105 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310734 #0A3407
analogous
#1B0734 #310734 #340721
triadic
#310734 #343107 #073431
tetradic
#310734 #341B07 #0A3407 #072134
square
#310734 #341B07 #0A3407 #072134
split-complementary
#310734 #213407 #07341B
monochromatic
#19041B #19041B #310734 #640E6A #9716A0

Accessibility & contrast

On white

17.35
#310734 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#310734 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310734
17.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310734#FFFFFF#000000##FFFFFF
##3107341.0017.351.2117.35
#FFFFFF17.351.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001735
Deuteranopia (green-blind)
#101C33
Tritanopia (blue-blind)
#320F1D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310734;
/* rgb */ color: rgb(49, 7, 52);
/* oklch */ color: oklch(23.1% 0.092 325.1);
Tailwind
colors: {
  custom: {
    50: '#6b4c6b',
    500: '#310734',
    950: '#000000',
  },
}
SCSS
$custom: #310734;
$custom-light: #6b4c6b;
$custom-dark: #000000;
JSON
{
  "hex": "#310734",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 52
  },
  "hsl": {
    "h": 296,
    "s": 76.271,
    "l": 11.569
  },
  "oklch": {
    "l": 0.23123,
    "c": 0.09158,
    "h": 325.1
  },
  "luminance": 0.01053
}

Semantic roles & 50–950 ramp

primary
#310734
secondary
#297423
accent
#F33542
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #310734

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

Preview Lab → · Contrast checker → · Palette generator →

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