#310541#310541

#310541 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 24.0% C 0.108 H 314.7°. Best body text is #FFFFFF at 17.09:1 contrast (WCAG AA passes).

Color values

HEX#310541
RGBrgb(49, 5, 65)
HSLhsl(284, 86%, 14%)
HSVhsv(284, 92%, 25%)
CMYKcmyk(24.6%, 92.3%, 0%, 74.5%)
CIE-LABlab(10.13, 31.46, -27.04)
CIE-LCHlch(10.13, 41.48, 319.31°)
OKLaboklab(23.95% 0.0756 -0.0765)
OKLCHoklch(23.95% 0.108 314.7)
XYZxyz(2.2749, 1.1432, 5.1008)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310541 #154105
analogous
#130541 #310541 #410533
triadic
#310541 #413105 #054131
tetradic
#310541 #411305 #154105 #053341
square
#310541 #411305 #154105 #053341
split-complementary
#310541 #334105 #054113
monochromatic
#15021C #15021C #310541 #5C097A #870EB3

Accessibility & contrast

On white

17.09
#310541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#310541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310541
17.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310541#FFFFFF#000000##FFFFFF
##3105411.0017.091.2317.09
#FFFFFF17.091.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001943
Deuteranopia (green-blind)
#021D40
Tritanopia (blue-blind)
#301424
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310541;
/* rgb */ color: rgb(49, 5, 65);
/* oklch */ color: oklch(24.0% 0.108 314.7);
Tailwind
colors: {
  custom: {
    50: '#6c4b76',
    500: '#310541',
    950: '#000000',
  },
}
SCSS
$custom: #310541;
$custom-light: #6c4b76;
$custom-dark: #000000;
JSON
{
  "hex": "#310541",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 65
  },
  "hsl": {
    "h": 284,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.23954,
    "c": 0.10753,
    "h": 314.7
  },
  "luminance": 0.01143
}

Semantic roles & 50–950 ramp

primary
#310541
secondary
#3A8120
accent
#FC2C63
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #310541

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

Preview Lab → · Contrast checker → · Palette generator →

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