#310534#310534

#310534 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.9% C 0.095 H 325.3°. Best body text is #FFFFFF at 17.47:1 contrast (WCAG AA passes).

Color values

HEX#310534
RGBrgb(49, 5, 52)
HSLhsl(296, 82%, 11%)
HSVhsv(296, 90%, 20%)
CMYKcmyk(5.8%, 90.4%, 0%, 79.6%)
CIE-LABlab(9.07, 28.60, -19.39)
CIE-LCHlch(9.07, 34.55, 325.86°)
OKLaboklab(22.87% 0.0779 -0.054)
OKLCHoklch(22.87% 0.095 325.3)
XYZxyz(1.9407, 1.0096, 3.3408)
Luminance0.0101 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310534 #083405
analogous
#190534 #310534 #34051F
triadic
#310534 #343105 #053431
tetradic
#310534 #341905 #083405 #051F34
square
#310534 #341905 #083405 #051F34
split-complementary
#310534 #1F3405 #053419
monochromatic
#1A031C #1A031C #310534 #660A6C #9A10A4

Accessibility & contrast

On white

17.47
#310534 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#310534 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310534
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310534#FFFFFF#000000##FFFFFF
##3105341.0017.471.2017.47
#FFFFFF17.471.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001635
Deuteranopia (green-blind)
#0F1B33
Tritanopia (blue-blind)
#320D1C
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310534;
/* rgb */ color: rgb(49, 5, 52);
/* oklch */ color: oklch(22.9% 0.095 325.3);
Tailwind
colors: {
  custom: {
    50: '#6b4b6c',
    500: '#310534',
    950: '#000000',
  },
}
SCSS
$custom: #310534;
$custom-light: #6b4b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#310534",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 52
  },
  "hsl": {
    "h": 296.17,
    "s": 82.456,
    "l": 11.176
  },
  "oklch": {
    "l": 0.22871,
    "c": 0.09483,
    "h": 325.3
  },
  "luminance": 0.01009
}

Semantic roles & 50–950 ramp

primary
#310534
secondary
#25751F
accent
#F92F3C
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #310534

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

Preview Lab → · Contrast checker → · Palette generator →

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