#310639#310639

#310639 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.4% C 0.098 H 320.8°. Best body text is #FFFFFF at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#310639
RGBrgb(49, 6, 57)
HSLhsl(291, 81%, 12%)
HSVhsv(291, 89%, 22%)
CMYKcmyk(14%, 89.5%, 0%, 77.6%)
CIE-LABlab(9.63, 29.16, -22.12)
CIE-LCHlch(9.63, 36.60, 322.81°)
OKLaboklab(23.39% 0.076 -0.062)
OKLCHoklch(23.39% 0.098 320.8)
XYZxyz(2.0702, 1.0787, 3.9693)
Luminance0.0108 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310639 #0E3906
analogous
#170639 #310639 #390628
triadic
#310639 #393106 #063931
tetradic
#310639 #391706 #0E3906 #062839
square
#310639 #391706 #0E3906 #062839
split-complementary
#310639 #283906 #063917
monochromatic
#18031C #18031C #310639 #610C70 #9012A8

Accessibility & contrast

On white

17.27
#310639 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310639
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310639#FFFFFF#000000##FFFFFF
##3106391.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183A
Deuteranopia (green-blind)
#0C1C38
Tritanopia (blue-blind)
#31101F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310639;
/* rgb */ color: rgb(49, 6, 57);
/* oklch */ color: oklch(23.4% 0.098 320.8);
Tailwind
colors: {
  custom: {
    50: '#6b4b70',
    500: '#310639',
    950: '#000000',
  },
}
SCSS
$custom: #310639;
$custom-light: #6b4b70;
$custom-dark: #000000;
JSON
{
  "hex": "#310639",
  "rgb": {
    "r": 49,
    "g": 6,
    "b": 57
  },
  "hsl": {
    "h": 290.588,
    "s": 80.952,
    "l": 12.353
  },
  "oklch": {
    "l": 0.2339,
    "c": 0.0981,
    "h": 320.8
  },
  "luminance": 0.01079
}

Semantic roles & 50–950 ramp

primary
#310639
secondary
#2F7922
accent
#F73050
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #310639

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

Preview Lab → · Contrast checker → · Palette generator →

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