#310847#310847

#310847 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.110 H 310.0°. Best body text is #FFFFFF at 16.71:1 contrast (WCAG AA passes).

Color values

HEX#310847
RGBrgb(49, 8, 71)
HSLhsl(279, 80%, 15%)
HSVhsv(279, 89%, 28%)
CMYKcmyk(31%, 88.7%, 0%, 72.2%)
CIE-LABlab(11.15, 31.50, -29.62)
CIE-LCHlch(11.15, 43.24, 316.76°)
OKLaboklab(24.83% 0.0706 -0.0841)
OKLCHoklch(24.83% 0.11 310)
XYZxyz(2.4906, 1.2816, 6.0762)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310847 #1E4708
analogous
#120847 #310847 #47083D
triadic
#310847 #473108 #084731
tetradic
#310847 #471208 #1E4708 #083D47
square
#310847 #471208 #1E4708 #083D47
split-complementary
#310847 #3D4708 #084712
monochromatic
#13031C #13031C #310847 #570E7E #7D14B5

Accessibility & contrast

On white

16.71
#310847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#310847 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310847
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310847#FFFFFF#000000##FFFFFF
##3108471.0016.711.2616.71
#FFFFFF16.711.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C49
Deuteranopia (green-blind)
#001E46
Tritanopia (blue-blind)
#2E1828
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310847;
/* rgb */ color: rgb(49, 8, 71);
/* oklch */ color: oklch(24.8% 0.110 310.0);
Tailwind
colors: {
  custom: {
    50: '#6c4d7b',
    500: '#310847',
    950: '#000000',
  },
}
SCSS
$custom: #310847;
$custom-light: #6c4d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#310847",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 71
  },
  "hsl": {
    "h": 279.048,
    "s": 79.747,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24831,
    "c": 0.1098,
    "h": 310
  },
  "luminance": 0.01282
}

Semantic roles & 50–950 ramp

primary
#310847
secondary
#478526
accent
#F63276
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #310847

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

Preview Lab → · Contrast checker → · Palette generator →

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