#310D4F#310D4F

#310D4F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.113 H 304.2°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#310D4F
RGBrgb(49, 13, 79)
HSLhsl(273, 72%, 18%)
HSVhsv(273, 84%, 31%)
CMYKcmyk(38%, 83.5%, 0%, 69%)
CIE-LABlab(12.64, 31.36, -32.74)
CIE-LCHlch(12.64, 45.34, 313.77°)
OKLaboklab(26.11% 0.0635 -0.0933)
OKLCHoklch(26.11% 0.113 304.2)
XYZxyz(2.8215, 1.5053, 7.5375)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D4F #2B4F0D
analogous
#100D4F #310D4F #4F0D4C
triadic
#310D4F #4F310D #0D4F31
tetradic
#310D4F #4F100D #2B4F0D #0D4C4F
square
#310D4F #4F100D #2B4F0D #0D4C4F
split-complementary
#310D4F #4C4F0D #0D4F10
monochromatic
#10041A #10041A #310D4F #521684 #721EB8

Accessibility & contrast

On white

16.14
#310D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#310D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310D4F
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D4F#FFFFFF#000000##FFFFFF
##310D4F1.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#2B1E2D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #310d4f;
/* rgb */ color: rgb(49, 13, 79);
/* oklch */ color: oklch(26.1% 0.113 304.2);
Tailwind
colors: {
  custom: {
    50: '#6d5081',
    500: '#310d4f',
    950: '#000000',
  },
}
SCSS
$custom: #310d4f;
$custom-light: #6d5081;
$custom-dark: #000000;
JSON
{
  "hex": "#310d4f",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 272.727,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26108,
    "c": 0.11281,
    "h": 304.2
  },
  "luminance": 0.01505
}

Semantic roles & 50–950 ramp

primary
#310D4F
secondary
#588A2E
accent
#EE398C
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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