#310841#310841

#310841 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.3% C 0.103 H 314.2°. Best body text is #FFFFFF at 16.91:1 contrast (WCAG AA passes).

Color values

HEX#310841
RGBrgb(49, 8, 65)
HSLhsl(283, 78%, 14%)
HSVhsv(283, 88%, 25%)
CMYKcmyk(24.6%, 87.7%, 0%, 74.5%)
CIE-LABlab(10.62, 30.04, -26.25)
CIE-LCHlch(10.62, 39.89, 318.85°)
OKLaboklab(24.3% 0.0721 -0.0742)
OKLCHoklch(24.3% 0.103 314.2)
XYZxyz(2.3074, 1.2084, 5.1117)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310841 #184108
analogous
#150841 #310841 #410835
triadic
#310841 #413108 #084131
tetradic
#310841 #411508 #184108 #083541
square
#310841 #411508 #184108 #083541
split-complementary
#310841 #354108 #084115
monochromatic
#15031B #15031B #310841 #5A0F77 #8315AE

Accessibility & contrast

On white

16.91
#310841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#310841 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310841
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310841#FFFFFF#000000##FFFFFF
##3108411.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B43
Deuteranopia (green-blind)
#041E40
Tritanopia (blue-blind)
#2F1524
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310841;
/* rgb */ color: rgb(49, 8, 65);
/* oklch */ color: oklch(24.3% 0.103 314.2);
Tailwind
colors: {
  custom: {
    50: '#6c4d76',
    500: '#310841',
    950: '#000000',
  },
}
SCSS
$custom: #310841;
$custom-light: #6c4d76;
$custom-dark: #000000;
JSON
{
  "hex": "#310841",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 65
  },
  "hsl": {
    "h": 283.158,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24296,
    "c": 0.10344,
    "h": 314.2
  },
  "luminance": 0.01208
}

Semantic roles & 50–950 ramp

primary
#310841
secondary
#3F7F25
accent
#F53369
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #310841

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

Preview Lab → · Contrast checker → · Palette generator →

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