#310934#310934

#310934 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.4% C 0.088 H 324.9°. Best body text is #FFFFFF at 17.22:1 contrast (WCAG AA passes).

Color values

HEX#310934
RGBrgb(49, 9, 52)
HSLhsl(296, 70%, 12%)
HSVhsv(296, 83%, 20%)
CMYKcmyk(5.8%, 82.7%, 0%, 79.6%)
CIE-LABlab(9.77, 26.59, -18.27)
CIE-LCHlch(9.77, 32.27, 325.51°)
OKLaboklab(23.37% 0.0724 -0.0508)
OKLCHoklch(23.37% 0.088 324.9)
XYZxyz(1.9841, 1.0964, 3.3553)
Luminance0.0110 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310934 #0C3409
analogous
#1C0934 #310934 #340922
triadic
#310934 #343109 #093431
tetradic
#310934 #341C09 #0C3409 #092234
square
#310934 #341C09 #0C3409 #092234
split-complementary
#310934 #223409 #09341C
monochromatic
#19051A #19051A #310934 #621268 #931B9C

Accessibility & contrast

On white

17.22
#310934 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#310934 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310934
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310934#FFFFFF#000000##FFFFFF
##3109341.0017.221.2217.22
#FFFFFF17.221.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021835
Deuteranopia (green-blind)
#111D33
Tritanopia (blue-blind)
#32101D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310934;
/* rgb */ color: rgb(49, 9, 52);
/* oklch */ color: oklch(23.4% 0.088 324.9);
Tailwind
colors: {
  custom: {
    50: '#6b4d6b',
    500: '#310934',
    950: '#000000',
  },
}
SCSS
$custom: #310934;
$custom-light: #6b4d6b;
$custom-dark: #000000;
JSON
{
  "hex": "#310934",
  "rgb": {
    "r": 49,
    "g": 9,
    "b": 52
  },
  "hsl": {
    "h": 295.814,
    "s": 70.492,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23369,
    "c": 0.08845,
    "h": 324.9
  },
  "luminance": 0.01096
}

Semantic roles & 50–950 ramp

primary
#310934
secondary
#2C7227
accent
#ED3B47
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #310934

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

Preview Lab → · Contrast checker → · Palette generator →

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