#310837#310837

#310837 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.5% C 0.093 H 322.3°. Best body text is #FFFFFF at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#310837
RGBrgb(49, 8, 55)
HSLhsl(292, 75%, 12%)
HSVhsv(292, 85%, 22%)
CMYKcmyk(10.9%, 85.5%, 0%, 78.4%)
CIE-LABlab(9.82, 27.73, -20.38)
CIE-LCHlch(9.82, 34.41, 323.70°)
OKLaboklab(23.47% 0.0736 -0.0569)
OKLCHoklch(23.47% 0.093 322.3)
XYZxyz(2.0430, 1.1026, 3.7189)
Luminance0.0110 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310837 #0E3708
analogous
#190837 #310837 #370826
triadic
#310837 #373108 #083731
tetradic
#310837 #371908 #0E3708 #082637
square
#310837 #371908 #0E3708 #082637
split-complementary
#310837 #263708 #083719
monochromatic
#18041B #18041B #310837 #61106C #9018A2

Accessibility & contrast

On white

17.21
#310837 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#310837 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310837
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310837#FFFFFF#000000##FFFFFF
##3108371.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001838
Deuteranopia (green-blind)
#0F1D36
Tritanopia (blue-blind)
#32111F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310837;
/* rgb */ color: rgb(49, 8, 55);
/* oklch */ color: oklch(23.5% 0.093 322.3);
Tailwind
colors: {
  custom: {
    50: '#6b4c6e',
    500: '#310837',
    950: '#000000',
  },
}
SCSS
$custom: #310837;
$custom-light: #6b4c6e;
$custom-dark: #000000;
JSON
{
  "hex": "#310837",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 55
  },
  "hsl": {
    "h": 292.34,
    "s": 74.603,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23474,
    "c": 0.09304,
    "h": 322.3
  },
  "luminance": 0.01102
}

Semantic roles & 50–950 ramp

primary
#310837
secondary
#2F7625
accent
#F1374E
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #310837

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

Preview Lab → · Contrast checker → · Palette generator →

#310837 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva