#310E39#310E39

#310E39 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.4% C 0.086 H 319.7°. Best body text is #FFFFFF at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#310E39
RGBrgb(49, 14, 57)
HSLhsl(289, 61%, 14%)
HSVhsv(289, 75%, 22%)
CMYKcmyk(14%, 75.4%, 0%, 77.6%)
CIE-LABlab(11.01, 25.24, -19.91)
CIE-LCHlch(11.01, 32.15, 321.73°)
OKLaboklab(24.38% 0.0656 -0.0557)
OKLCHoklch(24.38% 0.086 319.7)
XYZxyz(2.1621, 1.2626, 3.9999)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310E39 #16390E
analogous
#1C0E39 #310E39 #390E2C
triadic
#310E39 #39310E #0E3931
tetradic
#310E39 #391C0E #16390E #0E2C39
square
#310E39 #391C0E #16390E #0E2C39
split-complementary
#310E39 #2C390E #0E391C
monochromatic
#150619 #150619 #310E39 #5B1A6A #85269B

Accessibility & contrast

On white

16.77
#310E39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#310E39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310E39
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310E39#FFFFFF#000000##FFFFFF
##310E391.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031B3A
Deuteranopia (green-blind)
#111F38
Tritanopia (blue-blind)
#311522
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310e39;
/* rgb */ color: rgb(49, 14, 57);
/* oklch */ color: oklch(24.4% 0.086 319.7);
Tailwind
colors: {
  custom: {
    50: '#6b4f6f',
    500: '#310e39',
    950: '#000000',
  },
}
SCSS
$custom: #310e39;
$custom-light: #6b4f6f;
$custom-dark: #000000;
JSON
{
  "hex": "#310e39",
  "rgb": {
    "r": 49,
    "g": 14,
    "b": 57
  },
  "hsl": {
    "h": 288.837,
    "s": 60.563,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24376,
    "c": 0.08601,
    "h": 319.7
  },
  "luminance": 0.01262
}

Semantic roles & 50–950 ramp

primary
#310E39
secondary
#3C742F
accent
#E44462
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #310E39

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

Preview Lab → · Contrast checker → · Palette generator →

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