#310F3B#310F3B

#310F3B is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.7% C 0.087 H 317.7°. Best body text is #FFFFFF at 16.64:1 contrast (WCAG AA passes).

Color values

HEX#310F3B
RGBrgb(49, 15, 59)
HSLhsl(286, 59%, 15%)
HSVhsv(286, 75%, 23%)
CMYKcmyk(16.9%, 74.6%, 0%, 76.9%)
CIE-LABlab(11.35, 25.19, -20.81)
CIE-LCHlch(11.35, 32.67, 320.44°)
OKLaboklab(24.67% 0.0641 -0.0583)
OKLCHoklch(24.67% 0.087 317.7)
XYZxyz(2.2268, 1.3105, 4.2725)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F3B #193B0F
analogous
#1B0F3B #310F3B #3B0F2F
triadic
#310F3B #3B310F #0F3B31
tetradic
#310F3B #3B1B0F #193B0F #0F2F3B
square
#310F3B #3B1B0F #193B0F #0F2F3B
split-complementary
#310F3B #2F3B0F #0F3B1B
monochromatic
#140618 #140618 #310F3B #5A1B6C #82289D

Accessibility & contrast

On white

16.64
#310F3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310F3B
16.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F3B#FFFFFF#000000##FFFFFF
##310F3B1.0016.641.2616.64
#FFFFFF16.641.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021C3C
Deuteranopia (green-blind)
#111F3A
Tritanopia (blue-blind)
#311723
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310f3b;
/* rgb */ color: rgb(49, 15, 59);
/* oklch */ color: oklch(24.7% 0.087 317.7);
Tailwind
colors: {
  custom: {
    50: '#6b5071',
    500: '#310f3b',
    950: '#000000',
  },
}
SCSS
$custom: #310f3b;
$custom-light: #6b5071;
$custom-dark: #000000;
JSON
{
  "hex": "#310f3b",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 59
  },
  "hsl": {
    "h": 286.364,
    "s": 59.459,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24666,
    "c": 0.08665,
    "h": 317.7
  },
  "luminance": 0.0131
}

Semantic roles & 50–950 ramp

primary
#310F3B
secondary
#407530
accent
#E34569
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #310F3B

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

Preview Lab → · Contrast checker → · Palette generator →

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