#310C4C#310C4C

#310C4C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.111 H 306.2°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#310C4C
RGBrgb(49, 12, 76)
HSLhsl(275, 73%, 17%)
HSVhsv(275, 84%, 30%)
CMYKcmyk(35.5%, 84.2%, 0%, 70.2%)
CIE-LABlab(12.21, 31.03, -31.38)
CIE-LCHlch(12.21, 44.13, 314.68°)
OKLaboklab(25.72% 0.0653 -0.0893)
OKLCHoklch(25.72% 0.111 306.2)
XYZxyz(2.7023, 1.4377, 6.9712)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C4C #274C0C
analogous
#110C4C #310C4C #4C0C47
triadic
#310C4C #4C310C #0C4C31
tetradic
#310C4C #4C110C #274C0C #0C474C
square
#310C4C #4C110C #274C0C #0C474C
split-complementary
#310C4C #474C0C #0C4C11
monochromatic
#11041A #11041A #310C4C #531481 #751DB6

Accessibility & contrast

On white

16.31
#310C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#310C4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310C4C
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C4C#FFFFFF#000000##FFFFFF
##310C4C1.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#2C1C2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #310c4c;
/* rgb */ color: rgb(49, 12, 76);
/* oklch */ color: oklch(25.7% 0.111 306.2);
Tailwind
colors: {
  custom: {
    50: '#6d4f7f',
    500: '#310c4c',
    950: '#000000',
  },
}
SCSS
$custom: #310c4c;
$custom-light: #6d4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#310c4c",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 76
  },
  "hsl": {
    "h": 274.688,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25717,
    "c": 0.11058,
    "h": 306.2
  },
  "luminance": 0.01438
}

Semantic roles & 50–950 ramp

primary
#310C4C
secondary
#53882C
accent
#EF3886
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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