#310940#310940

#310940 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.3% C 0.101 H 314.8°. Best body text is #FFFFFF at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#310940
RGBrgb(49, 9, 64)
HSLhsl(284, 75%, 14%)
HSVhsv(284, 86%, 25%)
CMYKcmyk(23.4%, 85.9%, 0%, 74.9%)
CIE-LABlab(10.69, 29.34, -25.42)
CIE-LCHlch(10.69, 38.83, 319.09°)
OKLaboklab(24.32% 0.0712 -0.0717)
OKLCHoklch(24.32% 0.101 314.8)
XYZxyz(2.2896, 1.2186, 4.9641)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310940 #184009
analogous
#160940 #310940 #400934
triadic
#310940 #403109 #094031
tetradic
#310940 #401609 #184009 #093440
square
#310940 #401609 #184009 #093440
split-complementary
#310940 #344009 #094016
monochromatic
#15041B #15041B #310940 #5A1176 #8318AB

Accessibility & contrast

On white

16.88
#310940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#310940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310940
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310940#FFFFFF#000000##FFFFFF
##3109401.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B42
Deuteranopia (green-blind)
#061E3F
Tritanopia (blue-blind)
#301524
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310940;
/* rgb */ color: rgb(49, 9, 64);
/* oklch */ color: oklch(24.3% 0.101 314.8);
Tailwind
colors: {
  custom: {
    50: '#6c4d75',
    500: '#310940',
    950: '#000000',
  },
}
SCSS
$custom: #310940;
$custom-light: #6c4d75;
$custom-dark: #000000;
JSON
{
  "hex": "#310940",
  "rgb": {
    "r": 49,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 283.636,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24322,
    "c": 0.10105,
    "h": 314.8
  },
  "luminance": 0.01219
}

Semantic roles & 50–950 ramp

primary
#310940
secondary
#3F7E27
accent
#F23669
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #310940

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

Preview Lab → · Contrast checker → · Palette generator →

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