#310943#310943

#310943 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.6% C 0.104 H 312.6°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#310943
RGBrgb(49, 9, 67)
HSLhsl(281, 76%, 15%)
HSVhsv(281, 87%, 26%)
CMYKcmyk(26.9%, 86.6%, 0%, 73.7%)
CIE-LABlab(10.95, 30.07, -27.14)
CIE-LCHlch(10.95, 40.50, 317.93°)
OKLaboklab(24.58% 0.0705 -0.0768)
OKLCHoklch(24.58% 0.104 312.6)
XYZxyz(2.3772, 1.2537, 5.4259)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310943 #1B4309
analogous
#140943 #310943 #430938
triadic
#310943 #433109 #094331
tetradic
#310943 #431409 #1B4309 #093843
square
#310943 #431409 #1B4309 #093843
split-complementary
#310943 #384309 #094314
monochromatic
#14041B #14041B #310943 #581079 #8017AF

Accessibility & contrast

On white

16.79
#310943 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310943
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310943#FFFFFF#000000##FFFFFF
##3109431.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B45
Deuteranopia (green-blind)
#031E42
Tritanopia (blue-blind)
#2F1726
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310943;
/* rgb */ color: rgb(49, 9, 67);
/* oklch */ color: oklch(24.6% 0.104 312.6);
Tailwind
colors: {
  custom: {
    50: '#6c4d78',
    500: '#310943',
    950: '#000000',
  },
}
SCSS
$custom: #310943;
$custom-light: #6c4d78;
$custom-dark: #000000;
JSON
{
  "hex": "#310943",
  "rgb": {
    "r": 49,
    "g": 9,
    "b": 67
  },
  "hsl": {
    "h": 281.379,
    "s": 76.316,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24581,
    "c": 0.10426,
    "h": 312.6
  },
  "luminance": 0.01254
}

Semantic roles & 50–950 ramp

primary
#310943
secondary
#438127
accent
#F33570
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #310943

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

Preview Lab → · Contrast checker → · Palette generator →

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