#310634#310634

#310634 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.0% C 0.093 H 325.2°. Best body text is #FFFFFF at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#310634
RGBrgb(49, 6, 52)
HSLhsl(296, 79%, 11%)
HSVhsv(296, 88%, 20%)
CMYKcmyk(5.8%, 88.5%, 0%, 79.6%)
CIE-LABlab(9.25, 28.08, -19.10)
CIE-LCHlch(9.25, 33.96, 325.77°)
OKLaboklab(23% 0.0765 -0.0532)
OKLCHoklch(23% 0.093 325.2)
XYZxyz(1.9515, 1.0313, 3.3444)
Luminance0.0103 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310634 #093406
analogous
#1A0634 #310634 #340620
triadic
#310634 #343106 #063431
tetradic
#310634 #341A06 #093406 #062034
square
#310634 #341A06 #093406 #062034
split-complementary
#310634 #203406 #06341A
monochromatic
#1A031B #1A031B #310634 #650C6B #9813A2

Accessibility & contrast

On white

17.41
#310634 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310634
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310634#FFFFFF#000000##FFFFFF
##3106341.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001735
Deuteranopia (green-blind)
#101C33
Tritanopia (blue-blind)
#320E1C
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310634;
/* rgb */ color: rgb(49, 6, 52);
/* oklch */ color: oklch(23.0% 0.093 325.2);
Tailwind
colors: {
  custom: {
    50: '#6b4b6c',
    500: '#310634',
    950: '#000000',
  },
}
SCSS
$custom: #310634;
$custom-light: #6b4b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#310634",
  "rgb": {
    "r": 49,
    "g": 6,
    "b": 52
  },
  "hsl": {
    "h": 296.087,
    "s": 79.31,
    "l": 11.373
  },
  "oklch": {
    "l": 0.22998,
    "c": 0.09319,
    "h": 325.2
  },
  "luminance": 0.01031
}

Semantic roles & 50–950 ramp

primary
#310634
secondary
#277421
accent
#F6323F
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #310634

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

Preview Lab → · Contrast checker → · Palette generator →

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