#310440#310440

#310440 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.7% C 0.108 H 315.6°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#310440
RGBrgb(49, 4, 64)
HSLhsl(285, 88%, 13%)
HSVhsv(285, 94%, 25%)
CMYKcmyk(23.4%, 93.8%, 0%, 74.9%)
CIE-LABlab(9.88, 31.71, -26.75)
CIE-LCHlch(9.88, 41.49, 319.86°)
OKLaboklab(23.75% 0.0771 -0.0756)
OKLCHoklch(23.75% 0.108 315.6)
XYZxyz(2.2353, 1.1101, 4.9460)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310440 #134004
analogous
#130440 #310440 #400431
triadic
#310440 #403104 #044031
tetradic
#310440 #401304 #134004 #043140
square
#310440 #401304 #134004 #043140
split-complementary
#310440 #314004 #044013
monochromatic
#16021D #16021D #310440 #5D087A #890BB3

Accessibility & contrast

On white

17.18
#310440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#310440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310440
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310440#FFFFFF#000000##FFFFFF
##3104401.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#021C3F
Tritanopia (blue-blind)
#301323
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310440;
/* rgb */ color: rgb(49, 4, 64);
/* oklch */ color: oklch(23.7% 0.108 315.6);
Tailwind
colors: {
  custom: {
    50: '#6c4b75',
    500: '#310440',
    950: '#000000',
  },
}
SCSS
$custom: #310440;
$custom-light: #6c4b75;
$custom-dark: #000000;
JSON
{
  "hex": "#310440",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 285,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23748,
    "c": 0.10796,
    "h": 315.6
  },
  "luminance": 0.0111
}

Semantic roles & 50–950 ramp

primary
#310440
secondary
#37811F
accent
#FE295F
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #310440

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

Preview Lab → · Contrast checker → · Palette generator →

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