#310C42#310C42

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

Color values

HEX#310C42
RGBrgb(49, 12, 66)
HSLhsl(281, 69%, 15%)
HSVhsv(281, 82%, 26%)
CMYKcmyk(25.8%, 81.8%, 0%, 74.1%)
CIE-LABlab(11.34, 28.46, -25.80)
CIE-LCHlch(11.34, 38.41, 317.81°)
OKLaboklab(24.83% 0.0674 -0.0729)
OKLCHoklch(24.83% 0.099 312.8)
XYZxyz(2.3813, 1.3093, 5.2805)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C42 #1D420C
analogous
#160C42 #310C42 #420C38
triadic
#310C42 #42310C #0C4231
tetradic
#310C42 #42160C #1D420C #0C3842
square
#310C42 #42160C #1D420C #0C3842
split-complementary
#310C42 #38420C #0C4216
monochromatic
#13051A #13051A #310C42 #571576 #7E1FAA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##310C42#FFFFFF#000000##FFFFFF
##310C421.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)
#001C44
Deuteranopia (green-blind)
#071F41
Tritanopia (blue-blind)
#2F1826
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310c42;
/* rgb */ color: rgb(49, 12, 66);
/* oklch */ color: oklch(24.8% 0.099 312.8);
Tailwind
colors: {
  custom: {
    50: '#6c4f77',
    500: '#310c42',
    950: '#000000',
  },
}
SCSS
$custom: #310c42;
$custom-light: #6c4f77;
$custom-dark: #000000;
JSON
{
  "hex": "#310c42",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 66
  },
  "hsl": {
    "h": 281.111,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.24832,
    "c": 0.09925,
    "h": 312.8
  },
  "luminance": 0.01309
}

Semantic roles & 50–950 ramp

primary
#310C42
secondary
#467E2C
accent
#EC3C73
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310C42

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

Preview Lab → · Contrast checker → · Palette generator →

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