#310F36#310F36

#310F36 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.3% C 0.081 H 322.4°. Best body text is #FFFFFF at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#310F36
RGBrgb(49, 15, 54)
HSLhsl(292, 57%, 14%)
HSVhsv(292, 72%, 21%)
CMYKcmyk(9.3%, 72.2%, 0%, 78.8%)
CIE-LABlab(11.00, 23.99, -17.77)
CIE-LCHlch(11.00, 29.85, 323.48°)
OKLaboklab(24.3% 0.0641 -0.0494)
OKLCHoklch(24.3% 0.081 322.4)
XYZxyz(2.1032, 1.2611, 3.6219)
Luminance0.0126 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F36 #14360F
analogous
#1D0F36 #310F36 #360F27
triadic
#310F36 #36310F #0F3631
tetradic
#310F36 #361D0F #14360F #0F2736
square
#310F36 #361D0F #14360F #0F2736
split-complementary
#310F36 #27360F #0F361D
monochromatic
#160718 #160718 #310F36 #5C1C66 #882A96

Accessibility & contrast

On white

16.77
#310F36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#310F36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F36
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F36#FFFFFF#000000##FFFFFF
##310F361.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071B37
Deuteranopia (green-blind)
#141F35
Tritanopia (blue-blind)
#321520
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310f36;
/* rgb */ color: rgb(49, 15, 54);
/* oklch */ color: oklch(24.3% 0.081 322.4);
Tailwind
colors: {
  custom: {
    50: '#6b506d',
    500: '#310f36',
    950: '#000000',
  },
}
SCSS
$custom: #310f36;
$custom-light: #6b506d;
$custom-dark: #000000;
JSON
{
  "hex": "#310f36",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 54
  },
  "hsl": {
    "h": 292.308,
    "s": 56.522,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24301,
    "c": 0.08089,
    "h": 322.4
  },
  "luminance": 0.01261
}

Semantic roles & 50–950 ramp

primary
#310F36
secondary
#397031
accent
#E0485B
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #310F36

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

Preview Lab → · Contrast checker → · Palette generator →

#310F36 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva