#310D4C#310D4C

#310D4C is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.109 H 306.0°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#310D4C
RGBrgb(49, 13, 76)
HSLhsl(274, 71%, 17%)
HSVhsv(274, 83%, 30%)
CMYKcmyk(35.5%, 82.9%, 0%, 70.2%)
CIE-LABlab(12.37, 30.56, -31.12)
CIE-LCHlch(12.37, 43.61, 314.49°)
OKLaboklab(25.83% 0.0642 -0.0885)
OKLCHoklch(25.83% 0.109 306)
XYZxyz(2.7148, 1.4626, 6.9754)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D4C #284C0D
analogous
#120D4C #310D4C #4C0D47
triadic
#310D4C #4C310D #0D4C31
tetradic
#310D4C #4C120D #284C0D #0D474C
square
#310D4C #4C120D #284C0D #0D474C
split-complementary
#310D4C #474C0D #0D4C12
monochromatic
#11041A #11041A #310D4C #531680 #741FB5

Accessibility & contrast

On white

16.25
#310D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310D4C
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D4C#FFFFFF#000000##FFFFFF
##310D4C1.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310d4c;
/* rgb */ color: rgb(49, 13, 76);
/* oklch */ color: oklch(25.8% 0.109 306.0);
Tailwind
colors: {
  custom: {
    50: '#6c507f',
    500: '#310d4c',
    950: '#000000',
  },
}
SCSS
$custom: #310d4c;
$custom-light: #6c507f;
$custom-dark: #000000;
JSON
{
  "hex": "#310d4c",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 76
  },
  "hsl": {
    "h": 274.286,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.2583,
    "c": 0.10935,
    "h": 306
  },
  "luminance": 0.01463
}

Semantic roles & 50–950 ramp

primary
#310D4C
secondary
#54872E
accent
#EE3A87
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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