#310542#310542

#310542 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.0% C 0.109 H 314.0°. Best body text is #FFFFFF at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#310542
RGBrgb(49, 5, 66)
HSLhsl(283, 86%, 14%)
HSVhsv(283, 92%, 26%)
CMYKcmyk(25.8%, 92.4%, 0%, 74.1%)
CIE-LABlab(10.22, 31.69, -27.61)
CIE-LCHlch(10.22, 42.03, 318.94°)
OKLaboklab(24.04% 0.0753 -0.0781)
OKLCHoklch(24.04% 0.109 314)
XYZxyz(2.3041, 1.1549, 5.2548)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310542 #164205
analogous
#130542 #310542 #420535
triadic
#310542 #423105 #054231
tetradic
#310542 #421305 #164205 #053542
square
#310542 #421305 #164205 #053542
split-complementary
#310542 #354205 #054213
monochromatic
#15021C #15021C #310542 #5B097B #850EB4

Accessibility & contrast

On white

17.06
#310542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310542
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310542#FFFFFF#000000##FFFFFF
##3105421.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#011D41
Tritanopia (blue-blind)
#2F1424
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310542;
/* rgb */ color: rgb(49, 5, 66);
/* oklch */ color: oklch(24.0% 0.109 314.0);
Tailwind
colors: {
  custom: {
    50: '#6c4b77',
    500: '#310542',
    950: '#000000',
  },
}
SCSS
$custom: #310542;
$custom-light: #6c4b77;
$custom-dark: #000000;
JSON
{
  "hex": "#310542",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 283.279,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24044,
    "c": 0.10853,
    "h": 314
  },
  "luminance": 0.01155
}

Semantic roles & 50–950 ramp

primary
#310542
secondary
#3C8220
accent
#FC2C66
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #310542

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

Preview Lab → · Contrast checker → · Palette generator →

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