#310741#310741

#310741 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.2% C 0.105 H 314.3°. Best body text is #FFFFFF at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#310741
RGBrgb(49, 7, 65)
HSLhsl(283, 81%, 14%)
HSVhsv(283, 89%, 25%)
CMYKcmyk(24.6%, 89.2%, 0%, 74.5%)
CIE-LABlab(10.46, 30.50, -26.51)
CIE-LCHlch(10.46, 40.42, 319.00°)
OKLaboklab(24.18% 0.0732 -0.0749)
OKLCHoklch(24.18% 0.105 314.3)
XYZxyz(2.2966, 1.1867, 5.1081)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310741 #174107
analogous
#140741 #310741 #410734
triadic
#310741 #413107 #074131
tetradic
#310741 #411407 #174107 #073441
square
#310741 #411407 #174107 #073441
split-complementary
#310741 #344107 #074114
monochromatic
#15031C #15031C #310741 #5B0D78 #8413B0

Accessibility & contrast

On white

16.97
#310741 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#310741 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310741
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310741#FFFFFF#000000##FFFFFF
##3107411.0016.971.2416.97
#FFFFFF16.971.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A43
Deuteranopia (green-blind)
#031D40
Tritanopia (blue-blind)
#2F1524
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310741;
/* rgb */ color: rgb(49, 7, 65);
/* oklch */ color: oklch(24.2% 0.105 314.3);
Tailwind
colors: {
  custom: {
    50: '#6c4c76',
    500: '#310741',
    950: '#000000',
  },
}
SCSS
$custom: #310741;
$custom-light: #6c4c76;
$custom-dark: #000000;
JSON
{
  "hex": "#310741",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 65
  },
  "hsl": {
    "h": 283.448,
    "s": 80.556,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24183,
    "c": 0.10479,
    "h": 314.3
  },
  "luminance": 0.01187
}

Semantic roles & 50–950 ramp

primary
#310741
secondary
#3D8024
accent
#F73167
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #310741

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

Preview Lab → · Contrast checker → · Palette generator →

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