#310F39#310F39

#310F39 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.5% C 0.084 H 319.5°. Best body text is #FFFFFF at 16.69:1 contrast (WCAG AA passes).

Color values

HEX#310F39
RGBrgb(49, 15, 57)
HSLhsl(289, 58%, 14%)
HSVhsv(289, 74%, 22%)
CMYKcmyk(14%, 73.7%, 0%, 77.6%)
CIE-LABlab(11.21, 24.70, -19.60)
CIE-LCHlch(11.21, 31.54, 321.57°)
OKLaboklab(24.52% 0.0641 -0.0548)
OKLCHoklch(24.52% 0.084 319.5)
XYZxyz(2.1759, 1.2901, 4.0045)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F39 #17390F
analogous
#1C0F39 #310F39 #390F2C
triadic
#310F39 #39310F #0F3931
tetradic
#310F39 #391C0F #17390F #0F2C39
square
#310F39 #391C0F #17390F #0F2C39
split-complementary
#310F39 #2C390F #0F391C
monochromatic
#150618 #150618 #310F39 #5B1C69 #84299A

Accessibility & contrast

On white

16.69
#310F39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#310F39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F39
16.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F39#FFFFFF#000000##FFFFFF
##310F391.0016.691.2616.69
#FFFFFF16.691.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041C3A
Deuteranopia (green-blind)
#121F38
Tritanopia (blue-blind)
#311622
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310f39;
/* rgb */ color: rgb(49, 15, 57);
/* oklch */ color: oklch(24.5% 0.084 319.5);
Tailwind
colors: {
  custom: {
    50: '#6b506f',
    500: '#310f39',
    950: '#000000',
  },
}
SCSS
$custom: #310f39;
$custom-light: #6b506f;
$custom-dark: #000000;
JSON
{
  "hex": "#310f39",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 57
  },
  "hsl": {
    "h": 288.571,
    "s": 58.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24517,
    "c": 0.08433,
    "h": 319.5
  },
  "luminance": 0.0129
}

Semantic roles & 50–950 ramp

primary
#310F39
secondary
#3D7330
accent
#E24664
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #310F39

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

Preview Lab → · Contrast checker → · Palette generator →

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