#310D38#310D38

#310D38 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.2% C 0.087 H 320.7°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#310D38
RGBrgb(49, 13, 56)
HSLhsl(290, 62%, 14%)
HSVhsv(290, 77%, 22%)
CMYKcmyk(12.5%, 76.8%, 0%, 78%)
CIE-LABlab(10.75, 25.54, -19.61)
CIE-LCHlch(10.75, 32.20, 322.48°)
OKLaboklab(24.17% 0.067 -0.0548)
OKLCHoklch(24.17% 0.087 320.7)
XYZxyz(2.1243, 1.2264, 3.8654)
Luminance0.0123 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D38 #14380D
analogous
#1B0D38 #310D38 #380D29
triadic
#310D38 #38310D #0D3831
tetradic
#310D38 #381B0D #14380D #0D2938
square
#310D38 #381B0D #14380D #0D2938
split-complementary
#310D38 #29380D #0D381B
monochromatic
#160619 #160619 #310D38 #5C196A #88249B

Accessibility & contrast

On white

16.86
#310D38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#310D38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310D38
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D38#FFFFFF#000000##FFFFFF
##310D381.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031A39
Deuteranopia (green-blind)
#111E37
Tritanopia (blue-blind)
#311421
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310d38;
/* rgb */ color: rgb(49, 13, 56);
/* oklch */ color: oklch(24.2% 0.087 320.7);
Tailwind
colors: {
  custom: {
    50: '#6b4f6f',
    500: '#310d38',
    950: '#000000',
  },
}
SCSS
$custom: #310d38;
$custom-light: #6b4f6f;
$custom-dark: #000000;
JSON
{
  "hex": "#310d38",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 56
  },
  "hsl": {
    "h": 290.233,
    "s": 62.319,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24166,
    "c": 0.08652,
    "h": 320.7
  },
  "luminance": 0.01226
}

Semantic roles & 50–950 ramp

primary
#310D38
secondary
#39732D
accent
#E5425D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #310D38

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

Preview Lab → · Contrast checker → · Palette generator →

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