#310535#310535

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

Color values

HEX#310535
RGBrgb(49, 5, 53)
HSLhsl(295, 83%, 11%)
HSVhsv(295, 91%, 21%)
CMYKcmyk(7.5%, 90.6%, 0%, 79.2%)
CIE-LABlab(9.15, 28.80, -20.00)
CIE-LCHlch(9.15, 35.06, 325.23°)
OKLaboklab(22.95% 0.0778 -0.0558)
OKLCHoklch(22.95% 0.096 324.4)
XYZxyz(1.9634, 1.0187, 3.4607)
Luminance0.0102 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310535 #093505
analogous
#190535 #310535 #350521
triadic
#310535 #353105 #053531
tetradic
#310535 #351905 #093505 #052135
square
#310535 #351905 #093505 #052135
split-complementary
#310535 #213505 #053519
monochromatic
#1A031C #1A031C #310535 #650A6D #9810A5

Accessibility & contrast

On white

17.44
#310535 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310535
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310535#FFFFFF#000000##FFFFFF
##3105351.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001636
Deuteranopia (green-blind)
#0E1C34
Tritanopia (blue-blind)
#320E1D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310535;
/* rgb */ color: rgb(49, 5, 53);
/* oklch */ color: oklch(22.9% 0.096 324.4);
Tailwind
colors: {
  custom: {
    50: '#6b4b6c',
    500: '#310535',
    950: '#000000',
  },
}
SCSS
$custom: #310535;
$custom-light: #6b4b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#310535",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 53
  },
  "hsl": {
    "h": 295,
    "s": 82.759,
    "l": 11.373
  },
  "oklch": {
    "l": 0.22948,
    "c": 0.09578,
    "h": 324.4
  },
  "luminance": 0.01019
}

Semantic roles & 50–950 ramp

primary
#310535
secondary
#277620
accent
#F92F40
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #310535

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

Preview Lab → · Contrast checker → · Palette generator →

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