#310B39#310B39

#310B39 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.0% C 0.091 H 320.1°. Best body text is #FFFFFF at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#310B39
RGBrgb(49, 11, 57)
HSLhsl(290, 68%, 13%)
HSVhsv(290, 81%, 22%)
CMYKcmyk(14%, 80.7%, 0%, 77.6%)
CIE-LABlab(10.47, 26.77, -20.78)
CIE-LCHlch(10.47, 33.89, 322.17°)
OKLaboklab(23.99% 0.0696 -0.0582)
OKLCHoklch(23.99% 0.091 320.1)
XYZxyz(2.1247, 1.1878, 3.9875)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B39 #13390B
analogous
#1A0B39 #310B39 #390B2A
triadic
#310B39 #39310B #0B3931
tetradic
#310B39 #391A0B #13390B #0B2A39
square
#310B39 #391A0B #13390B #0B2A39
split-complementary
#310B39 #2A390B #0B391A
monochromatic
#16051A #16051A #310B39 #5D156C #891FA0

Accessibility & contrast

On white

16.97
#310B39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#310B39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310B39
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B39#FFFFFF#000000##FFFFFF
##310B391.0016.971.2416.97
#FFFFFF16.971.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3A
Deuteranopia (green-blind)
#0F1E38
Tritanopia (blue-blind)
#311321
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310b39;
/* rgb */ color: rgb(49, 11, 57);
/* oklch */ color: oklch(24.0% 0.091 320.1);
Tailwind
colors: {
  custom: {
    50: '#6b4e6f',
    500: '#310b39',
    950: '#000000',
  },
}
SCSS
$custom: #310b39;
$custom-light: #6b4e6f;
$custom-dark: #000000;
JSON
{
  "hex": "#310b39",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 57
  },
  "hsl": {
    "h": 289.565,
    "s": 67.647,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23985,
    "c": 0.09072,
    "h": 320.1
  },
  "luminance": 0.01188
}

Semantic roles & 50–950 ramp

primary
#310B39
secondary
#37762A
accent
#EB3D5B
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #310B39

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

Preview Lab → · Contrast checker → · Palette generator →

#310B39 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva