#310942#310942

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

Color values

HEX#310942
RGBrgb(49, 9, 66)
HSLhsl(282, 76%, 15%)
HSVhsv(282, 86%, 26%)
CMYKcmyk(25.8%, 86.4%, 0%, 74.1%)
CIE-LABlab(10.86, 29.82, -26.57)
CIE-LCHlch(10.86, 39.94, 318.30°)
OKLaboklab(24.49% 0.0707 -0.0751)
OKLCHoklch(24.49% 0.103 313.3)
XYZxyz(2.3475, 1.2418, 5.2692)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310942 #1A4209
analogous
#140942 #310942 #420937
triadic
#310942 #423109 #094231
tetradic
#310942 #421409 #1A4209 #093742
square
#310942 #421409 #1A4209 #093742
split-complementary
#310942 #374209 #094214
monochromatic
#14041B #14041B #310942 #591078 #8118AE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##310942#FFFFFF#000000##FFFFFF
##3109421.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)
#001B44
Deuteranopia (green-blind)
#041E41
Tritanopia (blue-blind)
#2F1625
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310942;
/* rgb */ color: rgb(49, 9, 66);
/* oklch */ color: oklch(24.5% 0.103 313.3);
Tailwind
colors: {
  custom: {
    50: '#6c4d77',
    500: '#310942',
    950: '#000000',
  },
}
SCSS
$custom: #310942;
$custom-light: #6c4d77;
$custom-dark: #000000;
JSON
{
  "hex": "#310942",
  "rgb": {
    "r": 49,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 282.105,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24494,
    "c": 0.10319,
    "h": 313.3
  },
  "luminance": 0.01242
}

Semantic roles & 50–950 ramp

primary
#310942
secondary
#418027
accent
#F3356E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310942

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

Preview Lab → · Contrast checker → · Palette generator →

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