#310C41#310C41

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

Color values

HEX#310C41
RGBrgb(49, 12, 65)
HSLhsl(282, 69%, 15%)
HSVhsv(282, 82%, 25%)
CMYKcmyk(24.6%, 81.5%, 0%, 74.5%)
CIE-LABlab(11.26, 28.21, -25.22)
CIE-LCHlch(11.26, 37.84, 318.20°)
OKLaboklab(24.75% 0.0675 -0.0712)
OKLCHoklch(24.75% 0.098 313.5)
XYZxyz(2.3521, 1.2976, 5.1266)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C41 #1C410C
analogous
#170C41 #310C41 #410C36
triadic
#310C41 #41310C #0C4131
tetradic
#310C41 #41170C #1C410C #0C3641
square
#310C41 #41170C #1C410C #0C3641
split-complementary
#310C41 #36410C #0C4117
monochromatic
#13051A #13051A #310C41 #581675 #7F1FA8

Accessibility & contrast

On white

16.67
#310C41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C41
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C41#FFFFFF#000000##FFFFFF
##310C411.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C43
Deuteranopia (green-blind)
#081F40
Tritanopia (blue-blind)
#2F1725
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310c41;
/* rgb */ color: rgb(49, 12, 65);
/* oklch */ color: oklch(24.7% 0.098 313.5);
Tailwind
colors: {
  custom: {
    50: '#6c4f76',
    500: '#310c41',
    950: '#000000',
  },
}
SCSS
$custom: #310c41;
$custom-light: #6c4f76;
$custom-dark: #000000;
JSON
{
  "hex": "#310c41",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 65
  },
  "hsl": {
    "h": 281.887,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24748,
    "c": 0.09812,
    "h": 313.5
  },
  "luminance": 0.01298
}

Semantic roles & 50–950 ramp

primary
#310C41
secondary
#447D2C
accent
#EC3C71
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310C41

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

Preview Lab → · Contrast checker → · Palette generator →

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