#310336#310336

#310336 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.8% C 0.100 H 323.7°. Best body text is #FFFFFF at 17.55:1 contrast (WCAG AA passes).

Color values

HEX#310336
RGBrgb(49, 3, 54)
HSLhsl(294, 89%, 11%)
HSVhsv(294, 94%, 21%)
CMYKcmyk(9.3%, 94.4%, 0%, 78.8%)
CIE-LABlab(8.86, 30.06, -21.18)
CIE-LCHlch(8.86, 36.78, 324.83°)
OKLaboklab(22.77% 0.0806 -0.0592)
OKLCHoklch(22.77% 0.1 323.7)
XYZxyz(1.9650, 0.9846, 3.5759)
Luminance0.0098 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310336 #083603
analogous
#170336 #310336 #360321
triadic
#310336 #363103 #033631
tetradic
#310336 #361703 #083603 #032136
square
#310336 #361703 #083603 #032136
split-complementary
#310336 #213603 #033617
monochromatic
#1A021D #1A021D #310336 #660670 #9A09AA

Accessibility & contrast

On white

17.55
#310336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310336
17.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310336#FFFFFF#000000##FFFFFF
##3103361.0017.551.2017.55
#FFFFFF17.551.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001637
Deuteranopia (green-blind)
#0C1B35
Tritanopia (blue-blind)
#320D1D
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310336;
/* rgb */ color: rgb(49, 3, 54);
/* oklch */ color: oklch(22.8% 0.100 323.7);
Tailwind
colors: {
  custom: {
    50: '#6c4a6d',
    500: '#310336',
    950: '#000000',
  },
}
SCSS
$custom: #310336;
$custom-light: #6c4a6d;
$custom-dark: #000000;
JSON
{
  "hex": "#310336",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 54
  },
  "hsl": {
    "h": 294.118,
    "s": 89.474,
    "l": 11.176
  },
  "oklch": {
    "l": 0.22773,
    "c": 0.10003,
    "h": 323.7
  },
  "luminance": 0.00984
}

Semantic roles & 50–950 ramp

primary
#310336
secondary
#25791C
accent
#FF293E
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #310336

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

Preview Lab → · Contrast checker → · Palette generator →

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