#310939#310939

#310939 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.7% C 0.094 H 320.4°. Best body text is #FFFFFF at 17.09:1 contrast (WCAG AA passes).

Color values

HEX#310939
RGBrgb(49, 9, 57)
HSLhsl(290, 73%, 13%)
HSVhsv(290, 84%, 22%)
CMYKcmyk(14%, 84.2%, 0%, 77.6%)
CIE-LABlab(10.14, 27.70, -21.31)
CIE-LCHlch(10.14, 34.95, 322.43°)
OKLaboklab(23.75% 0.0721 -0.0597)
OKLCHoklch(23.75% 0.094 320.4)
XYZxyz(2.1027, 1.1439, 3.9801)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310939 #113909
analogous
#190939 #310939 #390929
triadic
#310939 #393109 #093931
tetradic
#310939 #391909 #113909 #092939
square
#310939 #391909 #113909 #092939
split-complementary
#310939 #293909 #093919
monochromatic
#17041A #17041A #310939 #5E116E #8C1AA3

Accessibility & contrast

On white

17.09
#310939 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310939
17.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310939#FFFFFF#000000##FFFFFF
##3109391.0017.091.2317.09
#FFFFFF17.091.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193A
Deuteranopia (green-blind)
#0E1D38
Tritanopia (blue-blind)
#311220
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310939;
/* rgb */ color: rgb(49, 9, 57);
/* oklch */ color: oklch(23.7% 0.094 320.4);
Tailwind
colors: {
  custom: {
    50: '#6b4d70',
    500: '#310939',
    950: '#000000',
  },
}
SCSS
$custom: #310939;
$custom-light: #6b4d70;
$custom-dark: #000000;
JSON
{
  "hex": "#310939",
  "rgb": {
    "r": 49,
    "g": 9,
    "b": 57
  },
  "hsl": {
    "h": 290,
    "s": 72.727,
    "l": 12.941
  },
  "oklch": {
    "l": 0.23749,
    "c": 0.09362,
    "h": 320.4
  },
  "luminance": 0.01144
}

Semantic roles & 50–950 ramp

primary
#310939
secondary
#347727
accent
#EF3857
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #310939

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

Preview Lab → · Contrast checker → · Palette generator →

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