#310944#310944

#310944 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.7% C 0.105 H 311.9°. Best body text is #FFFFFF at 16.76:1 contrast (WCAG AA passes).

Color values

HEX#310944
RGBrgb(49, 9, 68)
HSLhsl(281, 77%, 15%)
HSVhsv(281, 87%, 27%)
CMYKcmyk(27.9%, 86.8%, 0%, 73.3%)
CIE-LABlab(11.03, 30.31, -27.70)
CIE-LCHlch(11.03, 41.06, 317.58°)
OKLaboklab(24.67% 0.0703 -0.0784)
OKLCHoklch(24.67% 0.105 311.9)
XYZxyz(2.4075, 1.2658, 5.5852)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310944 #1C4409
analogous
#140944 #310944 #440939
triadic
#310944 #443109 #094431
tetradic
#310944 #441409 #1C4409 #093944
square
#310944 #441409 #1C4409 #093944
split-complementary
#310944 #394409 #094414
monochromatic
#13041B #13041B #310944 #58107A #7F17B0

Accessibility & contrast

On white

16.76
#310944 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310944
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310944#FFFFFF#000000##FFFFFF
##3109441.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310944;
/* rgb */ color: rgb(49, 9, 68);
/* oklch */ color: oklch(24.7% 0.105 311.9);
Tailwind
colors: {
  custom: {
    50: '#6c4e78',
    500: '#310944',
    950: '#000000',
  },
}
SCSS
$custom: #310944;
$custom-light: #6c4e78;
$custom-dark: #000000;
JSON
{
  "hex": "#310944",
  "rgb": {
    "r": 49,
    "g": 9,
    "b": 68
  },
  "hsl": {
    "h": 280.678,
    "s": 76.623,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24669,
    "c": 0.10535,
    "h": 311.9
  },
  "luminance": 0.01266
}

Semantic roles & 50–950 ramp

primary
#310944
secondary
#448227
accent
#F33572
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #310944

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

Preview Lab → · Contrast checker → · Palette generator →

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