#310740#310740

#310740 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.1% C 0.104 H 315.1°. Best body text is #FFFFFF at 17.00:1 contrast (WCAG AA passes).

Color values

HEX#310740
RGBrgb(49, 7, 64)
HSLhsl(284, 80%, 14%)
HSVhsv(284, 89%, 25%)
CMYKcmyk(23.4%, 89.1%, 0%, 74.9%)
CIE-LABlab(10.37, 30.27, -25.94)
CIE-LCHlch(10.37, 39.86, 319.40°)
OKLaboklab(24.1% 0.0735 -0.0733)
OKLCHoklch(24.1% 0.104 315.1)
XYZxyz(2.2679, 1.1752, 4.9569)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310740 #164007
analogous
#150740 #310740 #400733
triadic
#310740 #403107 #074031
tetradic
#310740 #401507 #164007 #073340
square
#310740 #401507 #164007 #073340
split-complementary
#310740 #334007 #074015
monochromatic
#15031C #15031C #310740 #5B0D77 #8513AE

Accessibility & contrast

On white

17.00
#310740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#310740 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310740
17.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310740#FFFFFF#000000##FFFFFF
##3107401.0017.001.2317.00
#FFFFFF17.001.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#051D3F
Tritanopia (blue-blind)
#301423
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310740;
/* rgb */ color: rgb(49, 7, 64);
/* oklch */ color: oklch(24.1% 0.104 315.1);
Tailwind
colors: {
  custom: {
    50: '#6c4c75',
    500: '#310740',
    950: '#000000',
  },
}
SCSS
$custom: #310740;
$custom-light: #6c4c75;
$custom-dark: #000000;
JSON
{
  "hex": "#310740",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 64
  },
  "hsl": {
    "h": 284.211,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24096,
    "c": 0.10375,
    "h": 315.1
  },
  "luminance": 0.01175
}

Semantic roles & 50–950 ramp

primary
#310740
secondary
#3C7F24
accent
#F73165
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #310740

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

Preview Lab → · Contrast checker → · Palette generator →

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