#310537#310537

#310537 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.1% C 0.098 H 322.6°. Best body text is #FFFFFF at 17.39:1 contrast (WCAG AA passes).

Color values

HEX#310537
RGBrgb(49, 5, 55)
HSLhsl(293, 83%, 12%)
HSVhsv(293, 91%, 22%)
CMYKcmyk(10.9%, 90.9%, 0%, 78.4%)
CIE-LABlab(9.30, 29.23, -21.21)
CIE-LCHlch(9.30, 36.11, 324.04°)
OKLaboklab(23.11% 0.0776 -0.0593)
OKLCHoklch(23.11% 0.098 322.6)
XYZxyz(2.0104, 1.0375, 3.7080)
Luminance0.0104 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310537 #0B3705
analogous
#180537 #310537 #370524
triadic
#310537 #373105 #053731
tetradic
#310537 #371805 #0B3705 #052437
square
#310537 #371805 #0B3705 #052437
split-complementary
#310537 #243705 #053718
monochromatic
#19031C #19031C #310537 #630A6F #950FA7

Accessibility & contrast

On white

17.39
#310537 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310537
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310537#FFFFFF#000000##FFFFFF
##3105371.0017.391.2117.39
#FFFFFF17.391.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001738
Deuteranopia (green-blind)
#0D1C36
Tritanopia (blue-blind)
#320F1E
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310537;
/* rgb */ color: rgb(49, 5, 55);
/* oklch */ color: oklch(23.1% 0.098 322.6);
Tailwind
colors: {
  custom: {
    50: '#6b4b6e',
    500: '#310537',
    950: '#000000',
  },
}
SCSS
$custom: #310537;
$custom-light: #6b4b6e;
$custom-dark: #000000;
JSON
{
  "hex": "#310537",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 55
  },
  "hsl": {
    "h": 292.8,
    "s": 83.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.23106,
    "c": 0.09769,
    "h": 322.6
  },
  "luminance": 0.01037
}

Semantic roles & 50–950 ramp

primary
#310537
secondary
#2A7820
accent
#FA2E47
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #310537

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

Preview Lab → · Contrast checker → · Palette generator →

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