#310B41#310B41

#310B41 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.6% C 0.100 H 313.7°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#310B41
RGBrgb(49, 11, 65)
HSLhsl(282, 71%, 15%)
HSVhsv(282, 83%, 25%)
CMYKcmyk(24.6%, 83.1%, 0%, 74.5%)
CIE-LABlab(11.09, 28.68, -25.49)
CIE-LCHlch(11.09, 38.37, 318.37°)
OKLaboklab(24.63% 0.0687 -0.072)
OKLCHoklch(24.63% 0.1 313.7)
XYZxyz(2.3403, 1.2740, 5.1226)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B41 #1B410B
analogous
#160B41 #310B41 #410B36
triadic
#310B41 #41310B #0B4131
tetradic
#310B41 #41160B #1B410B #0B3641
square
#310B41 #41160B #1B410B #0B3641
split-complementary
#310B41 #36410B #0B4116
monochromatic
#14041A #14041A #310B41 #581475 #801DAA

Accessibility & contrast

On white

16.74
#310B41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#310B41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310B41
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B41#FFFFFF#000000##FFFFFF
##310B411.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C43
Deuteranopia (green-blind)
#071F40
Tritanopia (blue-blind)
#2F1725
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310b41;
/* rgb */ color: rgb(49, 11, 65);
/* oklch */ color: oklch(24.6% 0.100 313.7);
Tailwind
colors: {
  custom: {
    50: '#6c4e76',
    500: '#310b41',
    950: '#000000',
  },
}
SCSS
$custom: #310b41;
$custom-light: #6c4e76;
$custom-dark: #000000;
JSON
{
  "hex": "#310b41",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 65
  },
  "hsl": {
    "h": 282.222,
    "s": 71.053,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2463,
    "c": 0.0995,
    "h": 313.7
  },
  "luminance": 0.01274
}

Semantic roles & 50–950 ramp

primary
#310B41
secondary
#437E2A
accent
#EE3A6F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310B41

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

Preview Lab → · Contrast checker → · Palette generator →

#310B41 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva