#310947#310947

#310947 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.109 H 309.8°. Best body text is #FFFFFF at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#310947
RGBrgb(49, 9, 71)
HSLhsl(279, 78%, 16%)
HSVhsv(279, 87%, 28%)
CMYKcmyk(31%, 87.3%, 0%, 72.2%)
CIE-LABlab(11.30, 31.06, -29.38)
CIE-LCHlch(11.30, 42.75, 316.59°)
OKLaboklab(24.94% 0.0696 -0.0834)
OKLCHoklch(24.94% 0.109 309.8)
XYZxyz(2.5014, 1.3033, 6.0798)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310947 #1F4709
analogous
#120947 #310947 #47093E
triadic
#310947 #473109 #094731
tetradic
#310947 #471209 #1F4709 #093E47
square
#310947 #471209 #1F4709 #093E47
split-complementary
#310947 #3E4709 #094712
monochromatic
#13031B #13031B #310947 #56107D #7C17B4

Accessibility & contrast

On white

16.66
#310947 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310947
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310947#FFFFFF#000000##FFFFFF
##3109471.0016.661.2616.66
#FFFFFF16.661.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310947;
/* rgb */ color: rgb(49, 9, 71);
/* oklch */ color: oklch(24.9% 0.109 309.8);
Tailwind
colors: {
  custom: {
    50: '#6c4e7b',
    500: '#310947',
    950: '#000000',
  },
}
SCSS
$custom: #310947;
$custom-light: #6c4e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#310947",
  "rgb": {
    "r": 49,
    "g": 9,
    "b": 71
  },
  "hsl": {
    "h": 278.71,
    "s": 77.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24938,
    "c": 0.10859,
    "h": 309.8
  },
  "luminance": 0.01303
}

Semantic roles & 50–950 ramp

primary
#310947
secondary
#488427
accent
#F43478
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #310947

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

Preview Lab → · Contrast checker → · Palette generator →

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