#310647#310647

#310647 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.6% C 0.112 H 310.4°. Best body text is #FFFFFF at 16.83:1 contrast (WCAG AA passes).

Color values

HEX#310647
RGBrgb(49, 6, 71)
HSLhsl(280, 84%, 15%)
HSVhsv(280, 92%, 28%)
CMYKcmyk(31%, 91.5%, 0%, 72.2%)
CIE-LABlab(10.84, 32.41, -30.13)
CIE-LCHlch(10.84, 44.25, 317.08°)
OKLaboklab(24.62% 0.0727 -0.0855)
OKLCHoklch(24.62% 0.112 310.4)
XYZxyz(2.4689, 1.2382, 6.0690)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310647 #1C4706
analogous
#100647 #310647 #47063D
triadic
#310647 #473106 #064731
tetradic
#310647 #471006 #1C4706 #063D47
square
#310647 #471006 #1C4706 #063D47
split-complementary
#310647 #3D4706 #064710
monochromatic
#13021C #13021C #310647 #580B7F #7F10B8

Accessibility & contrast

On white

16.83
#310647 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#310647 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310647
16.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310647#FFFFFF#000000##FFFFFF
##3106471.0016.831.2516.83
#FFFFFF16.831.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B49
Deuteranopia (green-blind)
#001E46
Tritanopia (blue-blind)
#2E1727
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310647;
/* rgb */ color: rgb(49, 6, 71);
/* oklch */ color: oklch(24.6% 0.112 310.4);
Tailwind
colors: {
  custom: {
    50: '#6d4c7b',
    500: '#310647',
    950: '#000000',
  },
}
SCSS
$custom: #310647;
$custom-light: #6d4c7b;
$custom-dark: #000000;
JSON
{
  "hex": "#310647",
  "rgb": {
    "r": 49,
    "g": 6,
    "b": 71
  },
  "hsl": {
    "h": 279.692,
    "s": 84.416,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24615,
    "c": 0.11229,
    "h": 310.4
  },
  "luminance": 0.01238
}

Semantic roles & 50–950 ramp

primary
#310647
secondary
#448623
accent
#FB2D73
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070109
muted
#7A777B

Preview Lab

Preview with #310647

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

Preview Lab → · Contrast checker → · Palette generator →

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