#310640#310640

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

Color values

HEX#310640
RGBrgb(49, 6, 64)
HSLhsl(284, 83%, 14%)
HSVhsv(284, 91%, 25%)
CMYKcmyk(23.4%, 90.6%, 0%, 74.9%)
CIE-LABlab(10.21, 30.74, -26.21)
CIE-LCHlch(10.21, 40.40, 319.55°)
OKLaboklab(23.98% 0.0746 -0.074)
OKLCHoklch(23.98% 0.105 315.2)
XYZxyz(2.2570, 1.1535, 4.9532)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310640 #154006
analogous
#140640 #310640 #400632
triadic
#310640 #403106 #064031
tetradic
#310640 #401406 #154006 #063240
square
#310640 #401406 #154006 #063240
split-complementary
#310640 #324006 #064014
monochromatic
#15031C #15031C #310640 #5C0B78 #8710B0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##310640#FFFFFF#000000##FFFFFF
##3106401.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)
#001A42
Deuteranopia (green-blind)
#041D3F
Tritanopia (blue-blind)
#301423
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310640;
/* rgb */ color: rgb(49, 6, 64);
/* oklch */ color: oklch(24.0% 0.105 315.2);
Tailwind
colors: {
  custom: {
    50: '#6c4c75',
    500: '#310640',
    950: '#000000',
  },
}
SCSS
$custom: #310640;
$custom-light: #6c4c75;
$custom-dark: #000000;
JSON
{
  "hex": "#310640",
  "rgb": {
    "r": 49,
    "g": 6,
    "b": 64
  },
  "hsl": {
    "h": 284.483,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.23981,
    "c": 0.10513,
    "h": 315.2
  },
  "luminance": 0.01153
}

Semantic roles & 50–950 ramp

primary
#310640
secondary
#3A8022
accent
#F92F63
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #310640

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

Preview Lab → · Contrast checker → · Palette generator →

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