#310733#310733

#310733 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.0% C 0.091 H 326.0°. Best body text is #FFFFFF at 17.37:1 contrast (WCAG AA passes).

Color values

HEX#310733
RGBrgb(49, 7, 51)
HSLhsl(297, 76%, 11%)
HSVhsv(297, 86%, 20%)
CMYKcmyk(3.9%, 86.3%, 0%, 80%)
CIE-LABlab(9.35, 27.36, -18.20)
CIE-LCHlch(9.35, 32.87, 326.37°)
OKLaboklab(23.05% 0.0752 -0.0506)
OKLCHoklch(23.05% 0.091 326)
XYZxyz(1.9401, 1.0441, 3.2307)
Luminance0.0104 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310733 #093307
analogous
#1B0733 #310733 #33071F
triadic
#310733 #333107 #073331
tetradic
#310733 #331B07 #093307 #071F33
square
#310733 #331B07 #093307 #071F33
split-complementary
#310733 #1F3307 #07331B
monochromatic
#1A041B #1A041B #310733 #650E69 #98169F

Accessibility & contrast

On white

17.37
#310733 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310733
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310733#FFFFFF#000000##FFFFFF
##3107331.0017.371.2117.37
#FFFFFF17.371.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001734
Deuteranopia (green-blind)
#111C32
Tritanopia (blue-blind)
#320E1C
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310733;
/* rgb */ color: rgb(49, 7, 51);
/* oklch */ color: oklch(23.0% 0.091 326.0);
Tailwind
colors: {
  custom: {
    50: '#6b4c6b',
    500: '#310733',
    950: '#000000',
  },
}
SCSS
$custom: #310733;
$custom-light: #6b4c6b;
$custom-dark: #000000;
JSON
{
  "hex": "#310733",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 51
  },
  "hsl": {
    "h": 297.273,
    "s": 75.862,
    "l": 11.373
  },
  "oklch": {
    "l": 0.23048,
    "c": 0.0906,
    "h": 326
  },
  "luminance": 0.01044
}

Semantic roles & 50–950 ramp

primary
#310733
secondary
#277323
accent
#F2353E
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310733

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

Preview Lab → · Contrast checker → · Palette generator →

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