#310635#310635

#310635 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.1% C 0.094 H 324.3°. Best body text is #FFFFFF at 17.38:1 contrast (WCAG AA passes).

Color values

HEX#310635
RGBrgb(49, 6, 53)
HSLhsl(295, 80%, 12%)
HSVhsv(295, 89%, 21%)
CMYKcmyk(7.5%, 88.7%, 0%, 79.2%)
CIE-LABlab(9.32, 28.29, -19.71)
CIE-LCHlch(9.32, 34.48, 325.13°)
OKLaboklab(23.07% 0.0764 -0.055)
OKLCHoklch(23.07% 0.094 324.3)
XYZxyz(1.9743, 1.0404, 3.4643)
Luminance0.0104 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310635 #0A3506
analogous
#1A0635 #310635 #350622
triadic
#310635 #353106 #063531
tetradic
#310635 #351A06 #0A3506 #062235
square
#310635 #351A06 #0A3506 #062235
split-complementary
#310635 #223506 #06351A
monochromatic
#19031B #19031B #310635 #640C6C #9712A3

Accessibility & contrast

On white

17.38
#310635 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#310635 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310635
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310635#FFFFFF#000000##FFFFFF
##3106351.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001736
Deuteranopia (green-blind)
#0F1C34
Tritanopia (blue-blind)
#320E1D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310635;
/* rgb */ color: rgb(49, 6, 53);
/* oklch */ color: oklch(23.1% 0.094 324.3);
Tailwind
colors: {
  custom: {
    50: '#6b4b6c',
    500: '#310635',
    950: '#000000',
  },
}
SCSS
$custom: #310635;
$custom-light: #6b4b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#310635",
  "rgb": {
    "r": 49,
    "g": 6,
    "b": 53
  },
  "hsl": {
    "h": 294.894,
    "s": 79.661,
    "l": 11.569
  },
  "oklch": {
    "l": 0.23074,
    "c": 0.09416,
    "h": 324.3
  },
  "luminance": 0.0104
}

Semantic roles & 50–950 ramp

primary
#310635
secondary
#297521
accent
#F63242
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #310635

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

Preview Lab → · Contrast checker → · Palette generator →

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