#310B42#310B42

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

Color values

HEX#310B42
RGBrgb(49, 11, 66)
HSLhsl(281, 71%, 15%)
HSVhsv(281, 83%, 26%)
CMYKcmyk(25.8%, 83.3%, 0%, 74.1%)
CIE-LABlab(11.18, 28.93, -26.06)
CIE-LCHlch(11.18, 38.94, 317.98°)
OKLaboklab(24.72% 0.0685 -0.0736)
OKLCHoklch(24.72% 0.101 312.9)
XYZxyz(2.3695, 1.2857, 5.2766)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B42 #1C420B
analogous
#160B42 #310B42 #420B37
triadic
#310B42 #42310B #0B4231
tetradic
#310B42 #42160B #1C420B #0B3742
square
#310B42 #42160B #1C420B #0B3742
split-complementary
#310B42 #37420B #0B4216
monochromatic
#13041A #13041A #310B42 #581476 #7F1CAB

Accessibility & contrast

On white

16.70
#310B42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B42
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B42#FFFFFF#000000##FFFFFF
##310B421.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C44
Deuteranopia (green-blind)
#061F41
Tritanopia (blue-blind)
#2F1726
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310b42;
/* rgb */ color: rgb(49, 11, 66);
/* oklch */ color: oklch(24.7% 0.101 312.9);
Tailwind
colors: {
  custom: {
    50: '#6c4e77',
    500: '#310b42',
    950: '#000000',
  },
}
SCSS
$custom: #310b42;
$custom-light: #6c4e77;
$custom-dark: #000000;
JSON
{
  "hex": "#310b42",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 66
  },
  "hsl": {
    "h": 281.455,
    "s": 71.429,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24715,
    "c": 0.1006,
    "h": 312.9
  },
  "luminance": 0.01286
}

Semantic roles & 50–950 ramp

primary
#310B42
secondary
#447F2A
accent
#EE3A71
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310B42

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

Preview Lab → · Contrast checker → · Palette generator →

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