#310436#310436

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

Color values

HEX#310436
RGBrgb(49, 4, 54)
HSLhsl(294, 86%, 11%)
HSVhsv(294, 93%, 21%)
CMYKcmyk(9.3%, 92.6%, 0%, 78.8%)
CIE-LABlab(9.04, 29.53, -20.89)
CIE-LCHlch(9.04, 36.17, 324.73°)
OKLaboklab(22.9% 0.0791 -0.0584)
OKLCHoklch(22.9% 0.098 323.6)
XYZxyz(1.9758, 1.0063, 3.5795)
Luminance0.0101 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310436 #093604
analogous
#180436 #310436 #360422
triadic
#310436 #363104 #043631
tetradic
#310436 #361804 #093604 #042236
square
#310436 #361804 #093604 #042236
split-complementary
#310436 #223604 #043618
monochromatic
#1A021C #1A021C #310436 #65086F #980CA8

Accessibility & contrast

On white

17.48
#310436 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310436
17.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310436#FFFFFF#000000##FFFFFF
##3104361.0017.481.2017.48
#FFFFFF17.481.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001637
Deuteranopia (green-blind)
#0D1B35
Tritanopia (blue-blind)
#320D1D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310436;
/* rgb */ color: rgb(49, 4, 54);
/* oklch */ color: oklch(22.9% 0.098 323.6);
Tailwind
colors: {
  custom: {
    50: '#6c4a6d',
    500: '#310436',
    950: '#000000',
  },
}
SCSS
$custom: #310436;
$custom-light: #6c4a6d;
$custom-dark: #000000;
JSON
{
  "hex": "#310436",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 54
  },
  "hsl": {
    "h": 294,
    "s": 86.207,
    "l": 11.373
  },
  "oklch": {
    "l": 0.229,
    "c": 0.09836,
    "h": 323.6
  },
  "luminance": 0.01006
}

Semantic roles & 50–950 ramp

primary
#310436
secondary
#27781E
accent
#FC2B40
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #310436

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

Preview Lab → · Contrast checker → · Palette generator →

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