#310D4A#310D4A

#310D4A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.107 H 307.2°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#310D4A
RGBrgb(49, 13, 74)
HSLhsl(275, 70%, 17%)
HSVhsv(275, 82%, 29%)
CMYKcmyk(33.8%, 82.4%, 0%, 71%)
CIE-LABlab(12.19, 30.03, -30.02)
CIE-LCHlch(12.19, 42.46, 315.01°)
OKLaboklab(25.65% 0.0647 -0.0853)
OKLCHoklch(25.65% 0.107 307.2)
XYZxyz(2.6463, 1.4353, 6.6149)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D4A #264A0D
analogous
#130D4A #310D4A #4A0D45
triadic
#310D4A #4A310D #0D4A31
tetradic
#310D4A #4A130D #264A0D #0D454A
square
#310D4A #4A130D #264A0D #0D454A
split-complementary
#310D4A #454A0D #0D4A13
monochromatic
#11051A #11051A #310D4A #53167E #761FB2

Accessibility & contrast

On white

16.32
#310D4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310D4A
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D4A#FFFFFF#000000##FFFFFF
##310D4A1.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310d4a;
/* rgb */ color: rgb(49, 13, 74);
/* oklch */ color: oklch(25.6% 0.107 307.2);
Tailwind
colors: {
  custom: {
    50: '#6c507d',
    500: '#310d4a',
    950: '#000000',
  },
}
SCSS
$custom: #310d4a;
$custom-light: #6c507d;
$custom-dark: #000000;
JSON
{
  "hex": "#310d4a",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 74
  },
  "hsl": {
    "h": 275.41,
    "s": 70.115,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25649,
    "c": 0.10705,
    "h": 307.2
  },
  "luminance": 0.01435
}

Semantic roles & 50–950 ramp

primary
#310D4A
secondary
#51852E
accent
#ED3B84
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310D4A

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

Preview Lab → · Contrast checker → · Palette generator →

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