#310439#310439

#310439 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.1% C 0.101 H 321.0°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#310439
RGBrgb(49, 4, 57)
HSLhsl(291, 87%, 12%)
HSVhsv(291, 93%, 22%)
CMYKcmyk(14%, 93%, 0%, 77.6%)
CIE-LABlab(9.28, 30.17, -22.68)
CIE-LCHlch(9.28, 37.75, 323.06°)
OKLaboklab(23.14% 0.0787 -0.0637)
OKLCHoklch(23.14% 0.101 321)
XYZxyz(2.0485, 1.0353, 3.9620)
Luminance0.0103 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310439 #0C3904
analogous
#170439 #310439 #390427
triadic
#310439 #393104 #043931
tetradic
#310439 #391704 #0C3904 #042739
square
#310439 #391704 #0C3904 #042739
split-complementary
#310439 #273904 #043917
monochromatic
#19021D #19021D #310439 #620872 #930CAB

Accessibility & contrast

On white

17.40
#310439 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#310439 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310439
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310439#FFFFFF#000000##FFFFFF
##3104391.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173A
Deuteranopia (green-blind)
#0A1C38
Tritanopia (blue-blind)
#310F1F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310439;
/* rgb */ color: rgb(49, 4, 57);
/* oklch */ color: oklch(23.1% 0.101 321.0);
Tailwind
colors: {
  custom: {
    50: '#6c4a70',
    500: '#310439',
    950: '#000000',
  },
}
SCSS
$custom: #310439;
$custom-light: #6c4a70;
$custom-dark: #000000;
JSON
{
  "hex": "#310439",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 57
  },
  "hsl": {
    "h": 290.943,
    "s": 86.885,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23144,
    "c": 0.10121,
    "h": 321
  },
  "luminance": 0.01035
}

Semantic roles & 50–950 ramp

primary
#310439
secondary
#2C7B1E
accent
#FD2B4A
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #310439

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

Preview Lab → · Contrast checker → · Palette generator →

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