#310641#310641

#310641 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.1% C 0.106 H 314.5°. Best body text is #FFFFFF at 17.03:1 contrast (WCAG AA passes).

Color values

HEX#310641
RGBrgb(49, 6, 65)
HSLhsl(284, 83%, 14%)
HSVhsv(284, 91%, 25%)
CMYKcmyk(24.6%, 90.8%, 0%, 74.5%)
CIE-LABlab(10.30, 30.97, -26.78)
CIE-LCHlch(10.30, 40.94, 319.16°)
OKLaboklab(24.07% 0.0744 -0.0757)
OKLCHoklch(24.07% 0.106 314.5)
XYZxyz(2.2857, 1.1650, 5.1045)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310641 #164106
analogous
#140641 #310641 #410634
triadic
#310641 #413106 #064131
tetradic
#310641 #411406 #164106 #063441
square
#310641 #411406 #164106 #063441
split-complementary
#310641 #344106 #064114
monochromatic
#15031C #15031C #310641 #5B0B79 #8510B1

Accessibility & contrast

On white

17.03
#310641 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310641
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310641#FFFFFF#000000##FFFFFF
##3106411.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A43
Deuteranopia (green-blind)
#031D40
Tritanopia (blue-blind)
#2F1424
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310641;
/* rgb */ color: rgb(49, 6, 65);
/* oklch */ color: oklch(24.1% 0.106 314.5);
Tailwind
colors: {
  custom: {
    50: '#6c4c76',
    500: '#310641',
    950: '#000000',
  },
}
SCSS
$custom: #310641;
$custom-light: #6c4c76;
$custom-dark: #000000;
JSON
{
  "hex": "#310641",
  "rgb": {
    "r": 49,
    "g": 6,
    "b": 65
  },
  "hsl": {
    "h": 283.729,
    "s": 83.099,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24069,
    "c": 0.10615,
    "h": 314.5
  },
  "luminance": 0.01165
}

Semantic roles & 50–950 ramp

primary
#310641
secondary
#3C8122
accent
#F92E65
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #310641

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

Preview Lab → · Contrast checker → · Palette generator →

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