#310D37#310D37

#310D37 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.1% C 0.085 H 321.7°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#310D37
RGBrgb(49, 13, 55)
HSLhsl(291, 62%, 13%)
HSVhsv(291, 76%, 22%)
CMYKcmyk(10.9%, 76.4%, 0%, 78.4%)
CIE-LABlab(10.68, 25.30, -19.00)
CIE-LCHlch(10.68, 31.64, 323.10°)
OKLaboklab(24.09% 0.067 -0.053)
OKLCHoklch(24.09% 0.085 321.7)
XYZxyz(2.1001, 1.2168, 3.7379)
Luminance0.0122 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D37 #13370D
analogous
#1C0D37 #310D37 #370D28
triadic
#310D37 #37310D #0D3731
tetradic
#310D37 #371C0D #13370D #0D2837
square
#310D37 #371C0D #13370D #0D2837
split-complementary
#310D37 #28370D #0D371C
monochromatic
#160619 #160619 #310D37 #5D1968 #89249A

Accessibility & contrast

On white

16.89
#310D37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#310D37 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310D37
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D37#FFFFFF#000000##FFFFFF
##310D371.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041A38
Deuteranopia (green-blind)
#121E36
Tritanopia (blue-blind)
#321420
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310d37;
/* rgb */ color: rgb(49, 13, 55);
/* oklch */ color: oklch(24.1% 0.085 321.7);
Tailwind
colors: {
  custom: {
    50: '#6b4f6e',
    500: '#310d37',
    950: '#000000',
  },
}
SCSS
$custom: #310d37;
$custom-light: #6b4f6e;
$custom-dark: #000000;
JSON
{
  "hex": "#310d37",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 55
  },
  "hsl": {
    "h": 291.429,
    "s": 61.765,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24092,
    "c": 0.08541,
    "h": 321.7
  },
  "luminance": 0.01217
}

Semantic roles & 50–950 ramp

primary
#310D37
secondary
#37722D
accent
#E5435A
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #310D37

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

Preview Lab → · Contrast checker → · Palette generator →

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