#310C43#310C43

#310C43 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.9% C 0.100 H 312.0°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#310C43
RGBrgb(49, 12, 67)
HSLhsl(280, 70%, 15%)
HSVhsv(280, 82%, 26%)
CMYKcmyk(26.9%, 82.1%, 0%, 73.7%)
CIE-LABlab(11.42, 28.71, -26.37)
CIE-LCHlch(11.42, 38.98, 317.43°)
OKLaboklab(24.92% 0.0672 -0.0745)
OKLCHoklch(24.92% 0.1 312)
XYZxyz(2.4110, 1.3212, 5.4371)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C43 #1E430C
analogous
#160C43 #310C43 #430C39
triadic
#310C43 #43310C #0C4331
tetradic
#310C43 #43160C #1E430C #0C3943
square
#310C43 #43160C #1E430C #0C3943
split-complementary
#310C43 #39430C #0C4316
monochromatic
#13051A #13051A #310C43 #571577 #7D1FAB

Accessibility & contrast

On white

16.61
#310C43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C43
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C43#FFFFFF#000000##FFFFFF
##310C431.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D45
Deuteranopia (green-blind)
#051F42
Tritanopia (blue-blind)
#2F1826
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310c43;
/* rgb */ color: rgb(49, 12, 67);
/* oklch */ color: oklch(24.9% 0.100 312.0);
Tailwind
colors: {
  custom: {
    50: '#6c4f77',
    500: '#310c43',
    950: '#000000',
  },
}
SCSS
$custom: #310c43;
$custom-light: #6c4f77;
$custom-dark: #000000;
JSON
{
  "hex": "#310c43",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 67
  },
  "hsl": {
    "h": 280.364,
    "s": 69.62,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24917,
    "c": 0.10038,
    "h": 312
  },
  "luminance": 0.01321
}

Semantic roles & 50–950 ramp

primary
#310C43
secondary
#477F2C
accent
#EC3B75
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #310C43

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

Preview Lab → · Contrast checker → · Palette generator →

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