#310B3E#310B3E

#310B3E is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.4% C 0.096 H 316.0°. Best body text is #FFFFFF at 16.83:1 contrast (WCAG AA passes).

Color values

HEX#310B3E
RGBrgb(49, 11, 62)
HSLhsl(285, 70%, 14%)
HSVhsv(285, 82%, 24%)
CMYKcmyk(21%, 82.3%, 0%, 75.7%)
CIE-LABlab(10.85, 27.95, -23.75)
CIE-LCHlch(10.85, 36.68, 319.65°)
OKLaboklab(24.38% 0.0692 -0.0669)
OKLCHoklch(24.38% 0.096 316)
XYZxyz(2.2557, 1.2402, 4.6771)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B3E #183E0B
analogous
#180B3E #310B3E #3E0B32
triadic
#310B3E #3E310B #0B3E31
tetradic
#310B3E #3E180B #183E0B #0B323E
square
#310B3E #3E180B #183E0B #0B323E
split-complementary
#310B3E #323E0B #0B3E18
monochromatic
#15051A #15051A #310B3E #5A1472 #831DA6

Accessibility & contrast

On white

16.83
#310B3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B3E
16.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B3E#FFFFFF#000000##FFFFFF
##310B3E1.0016.831.2516.83
#FFFFFF16.831.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3F
Deuteranopia (green-blind)
#0A1E3D
Tritanopia (blue-blind)
#301623
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310b3e;
/* rgb */ color: rgb(49, 11, 62);
/* oklch */ color: oklch(24.4% 0.096 316.0);
Tailwind
colors: {
  custom: {
    50: '#6b4e73',
    500: '#310b3e',
    950: '#000000',
  },
}
SCSS
$custom: #310b3e;
$custom-light: #6b4e73;
$custom-dark: #000000;
JSON
{
  "hex": "#310b3e",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 62
  },
  "hsl": {
    "h": 284.706,
    "s": 69.863,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24381,
    "c": 0.09618,
    "h": 316
  },
  "luminance": 0.0124
}

Semantic roles & 50–950 ramp

primary
#310B3E
secondary
#3F7B2A
accent
#ED3B68
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310B3E

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

Preview Lab → · Contrast checker → · Palette generator →

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