#310746#310746

#310746 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.6% C 0.110 H 310.9°. Best body text is #FFFFFF at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#310746
RGBrgb(49, 7, 70)
HSLhsl(280, 82%, 15%)
HSVhsv(280, 90%, 27%)
CMYKcmyk(30%, 90%, 0%, 72.5%)
CIE-LABlab(10.90, 31.70, -29.32)
CIE-LCHlch(10.90, 43.19, 317.24°)
OKLaboklab(24.63% 0.072 -0.0832)
OKLCHoklch(24.63% 0.11 310.9)
XYZxyz(2.4479, 1.2472, 5.9049)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310746 #1C4607
analogous
#120746 #310746 #46073B
triadic
#310746 #463107 #074631
tetradic
#310746 #461207 #1C4607 #073B46
square
#310746 #461207 #1C4607 #073B46
split-complementary
#310746 #3B4607 #074612
monochromatic
#13031C #13031C #310746 #580D7E #7F12B5

Accessibility & contrast

On white

16.81
#310746 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310746
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310746#FFFFFF#000000##FFFFFF
##3107461.0016.811.2516.81
#FFFFFF16.811.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310746;
/* rgb */ color: rgb(49, 7, 70);
/* oklch */ color: oklch(24.6% 0.110 310.9);
Tailwind
colors: {
  custom: {
    50: '#6c4d7a',
    500: '#310746',
    950: '#000000',
  },
}
SCSS
$custom: #310746;
$custom-light: #6c4d7a;
$custom-dark: #000000;
JSON
{
  "hex": "#310746",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 70
  },
  "hsl": {
    "h": 280,
    "s": 81.818,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24631,
    "c": 0.10999,
    "h": 310.9
  },
  "luminance": 0.01247
}

Semantic roles & 50–950 ramp

primary
#310746
secondary
#448524
accent
#F83072
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #310746

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

Preview Lab → · Contrast checker → · Palette generator →

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