#310C4A#310C4A

#310C4A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.108 H 307.4°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#310C4A
RGBrgb(49, 12, 74)
HSLhsl(276, 72%, 17%)
HSVhsv(276, 84%, 29%)
CMYKcmyk(33.8%, 83.8%, 0%, 71%)
CIE-LABlab(12.03, 30.50, -30.28)
CIE-LCHlch(12.03, 42.98, 315.20°)
OKLaboklab(25.53% 0.0658 -0.0861)
OKLCHoklch(25.53% 0.108 307.4)
XYZxyz(2.6339, 1.4104, 6.6107)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C4A #254A0C
analogous
#120C4A #310C4A #4A0C44
triadic
#310C4A #4A310C #0C4A31
tetradic
#310C4A #4A120C #254A0C #0C444A
square
#310C4A #4A120C #254A0C #0C444A
split-complementary
#310C4A #444A0C #0C4A12
monochromatic
#11041A #11041A #310C4A #54157F #771DB3

Accessibility & contrast

On white

16.38
#310C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#310C4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310C4A
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C4A#FFFFFF#000000##FFFFFF
##310C4A1.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#2D1B2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #310c4a;
/* rgb */ color: rgb(49, 12, 74);
/* oklch */ color: oklch(25.5% 0.108 307.4);
Tailwind
colors: {
  custom: {
    50: '#6c4f7d',
    500: '#310c4a',
    950: '#000000',
  },
}
SCSS
$custom: #310c4a;
$custom-light: #6c4f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#310c4a",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 74
  },
  "hsl": {
    "h": 275.806,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25533,
    "c": 0.10831,
    "h": 307.4
  },
  "luminance": 0.0141
}

Semantic roles & 50–950 ramp

primary
#310C4A
secondary
#50862C
accent
#EF3982
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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