#310B44#310B44

#310B44 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.9% C 0.103 H 311.5°. Best body text is #FFFFFF at 16.64:1 contrast (WCAG AA passes).

Color values

HEX#310B44
RGBrgb(49, 11, 68)
HSLhsl(280, 72%, 15%)
HSVhsv(280, 84%, 27%)
CMYKcmyk(27.9%, 83.8%, 0%, 73.3%)
CIE-LABlab(11.34, 29.43, -27.20)
CIE-LCHlch(11.34, 40.07, 317.25°)
OKLaboklab(24.89% 0.0682 -0.077)
OKLCHoklch(24.89% 0.103 311.5)
XYZxyz(2.4295, 1.3097, 5.5925)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B44 #1E440B
analogous
#140B44 #310B44 #440B3A
triadic
#310B44 #44310B #0B4431
tetradic
#310B44 #44140B #1E440B #0B3A44
square
#310B44 #44140B #1E440B #0B3A44
split-complementary
#310B44 #3A440B #0B4414
monochromatic
#13041A #13041A #310B44 #571479 #7D1CAD

Accessibility & contrast

On white

16.64
#310B44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#310B44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310B44
16.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B44#FFFFFF#000000##FFFFFF
##310B441.0016.641.2616.64
#FFFFFF16.641.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C46
Deuteranopia (green-blind)
#031F43
Tritanopia (blue-blind)
#2F1827
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310b44;
/* rgb */ color: rgb(49, 11, 68);
/* oklch */ color: oklch(24.9% 0.103 311.5);
Tailwind
colors: {
  custom: {
    50: '#6c4e78',
    500: '#310b44',
    950: '#000000',
  },
}
SCSS
$custom: #310b44;
$custom-light: #6c4e78;
$custom-dark: #000000;
JSON
{
  "hex": "#310b44",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 68
  },
  "hsl": {
    "h": 280,
    "s": 72.152,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24887,
    "c": 0.10283,
    "h": 311.5
  },
  "luminance": 0.0131
}

Semantic roles & 50–950 ramp

primary
#310B44
secondary
#47812A
accent
#EF3976
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #310B44

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

Preview Lab → · Contrast checker → · Palette generator →

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