#310638#310638

#310638 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.3% C 0.097 H 321.6°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#310638
RGBrgb(49, 6, 56)
HSLhsl(292, 81%, 12%)
HSVhsv(292, 89%, 22%)
CMYKcmyk(12.5%, 89.3%, 0%, 78%)
CIE-LABlab(9.55, 28.94, -21.53)
CIE-LCHlch(9.55, 36.07, 323.35°)
OKLaboklab(23.31% 0.0761 -0.0603)
OKLCHoklch(23.31% 0.097 321.6)
XYZxyz(2.0455, 1.0689, 3.8392)
Luminance0.0107 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310638 #0D3806
analogous
#180638 #310638 #380626
triadic
#310638 #383106 #063831
tetradic
#310638 #381806 #0D3806 #062638
square
#310638 #381806 #0D3806 #062638
split-complementary
#310638 #263806 #063818
monochromatic
#18031C #18031C #310638 #610C6F #9212A7

Accessibility & contrast

On white

17.30
#310638 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310638
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310638#FFFFFF#000000##FFFFFF
##3106381.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001839
Deuteranopia (green-blind)
#0C1C37
Tritanopia (blue-blind)
#32101F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310638;
/* rgb */ color: rgb(49, 6, 56);
/* oklch */ color: oklch(23.3% 0.097 321.6);
Tailwind
colors: {
  custom: {
    50: '#6b4b6f',
    500: '#310638',
    950: '#000000',
  },
}
SCSS
$custom: #310638;
$custom-light: #6b4b6f;
$custom-dark: #000000;
JSON
{
  "hex": "#310638",
  "rgb": {
    "r": 49,
    "g": 6,
    "b": 56
  },
  "hsl": {
    "h": 291.6,
    "s": 80.645,
    "l": 12.157
  },
  "oklch": {
    "l": 0.2331,
    "c": 0.0971,
    "h": 321.6
  },
  "luminance": 0.01069
}

Semantic roles & 50–950 ramp

primary
#310638
secondary
#2E7821
accent
#F7314D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #310638

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

Preview Lab → · Contrast checker → · Palette generator →

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