#310844#310844

#310844 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.6% C 0.107 H 312.0°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#310844
RGBrgb(49, 8, 68)
HSLhsl(281, 79%, 15%)
HSVhsv(281, 88%, 27%)
CMYKcmyk(27.9%, 88.2%, 0%, 73.3%)
CIE-LABlab(10.88, 30.76, -27.95)
CIE-LCHlch(10.88, 41.56, 317.74°)
OKLaboklab(24.56% 0.0714 -0.0792)
OKLCHoklch(24.56% 0.107 312)
XYZxyz(2.3966, 1.2441, 5.5816)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310844 #1B4408
analogous
#130844 #310844 #440839
triadic
#310844 #443108 #084431
tetradic
#310844 #441308 #1B4408 #083944
square
#310844 #441308 #1B4408 #083944
split-complementary
#310844 #394408 #084413
monochromatic
#14031B #14031B #310844 #580E7B #8015B2

Accessibility & contrast

On white

16.82
#310844 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#310844 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310844
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310844#FFFFFF#000000##FFFFFF
##3108441.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B46
Deuteranopia (green-blind)
#011E43
Tritanopia (blue-blind)
#2F1726
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310844;
/* rgb */ color: rgb(49, 8, 68);
/* oklch */ color: oklch(24.6% 0.107 312.0);
Tailwind
colors: {
  custom: {
    50: '#6c4d78',
    500: '#310844',
    950: '#000000',
  },
}
SCSS
$custom: #310844;
$custom-light: #6c4d78;
$custom-dark: #000000;
JSON
{
  "hex": "#310844",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 68
  },
  "hsl": {
    "h": 281,
    "s": 78.947,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2456,
    "c": 0.10661,
    "h": 312
  },
  "luminance": 0.01244
}

Semantic roles & 50–950 ramp

primary
#310844
secondary
#438226
accent
#F53270
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #310844

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

Preview Lab → · Contrast checker → · Palette generator →

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