#310A37#310A37

#310A37 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.7% C 0.090 H 322.0°. Best body text is #FFFFFF at 17.08:1 contrast (WCAG AA passes).

Color values

HEX#310A37
RGBrgb(49, 10, 55)
HSLhsl(292, 69%, 13%)
HSVhsv(292, 82%, 22%)
CMYKcmyk(10.9%, 81.8%, 0%, 78.4%)
CIE-LABlab(10.15, 26.78, -19.84)
CIE-LCHlch(10.15, 33.33, 323.47°)
OKLaboklab(23.71% 0.071 -0.0554)
OKLCHoklch(23.71% 0.09 322)
XYZxyz(2.0647, 1.1460, 3.7261)
Luminance0.0115 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A37 #10370A
analogous
#1A0A37 #310A37 #370A26
triadic
#310A37 #37310A #0A3731
tetradic
#310A37 #371A0A #10370A #0A2637
square
#310A37 #371A0A #10370A #0A2637
split-complementary
#310A37 #26370A #0A371A
monochromatic
#17051A #17051A #310A37 #5F136B #8D1D9F

Accessibility & contrast

On white

17.08
#310A37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#310A37 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310A37
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A37#FFFFFF#000000##FFFFFF
##310A371.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001938
Deuteranopia (green-blind)
#101D36
Tritanopia (blue-blind)
#32121F
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310a37;
/* rgb */ color: rgb(49, 10, 55);
/* oklch */ color: oklch(23.7% 0.090 322.0);
Tailwind
colors: {
  custom: {
    50: '#6b4d6e',
    500: '#310a37',
    950: '#000000',
  },
}
SCSS
$custom: #310a37;
$custom-light: #6b4d6e;
$custom-dark: #000000;
JSON
{
  "hex": "#310a37",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 55
  },
  "hsl": {
    "h": 292,
    "s": 69.231,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23713,
    "c": 0.09006,
    "h": 322
  },
  "luminance": 0.01146
}

Semantic roles & 50–950 ramp

primary
#310A37
secondary
#337428
accent
#EC3C53
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #310A37

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

Preview Lab → · Contrast checker → · Palette generator →

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