#310B40#310B40

#310B40 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.5% C 0.098 H 314.4°. Best body text is #FFFFFF at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#310B40
RGBrgb(49, 11, 64)
HSLhsl(283, 71%, 15%)
HSVhsv(283, 83%, 25%)
CMYKcmyk(23.4%, 82.8%, 0%, 74.9%)
CIE-LABlab(11.01, 28.44, -24.91)
CIE-LCHlch(11.01, 37.80, 318.78°)
OKLaboklab(24.55% 0.0689 -0.0703)
OKLCHoklch(24.55% 0.098 314.4)
XYZxyz(2.3116, 1.2626, 4.9714)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B40 #1A400B
analogous
#170B40 #310B40 #400B35
triadic
#310B40 #40310B #0B4031
tetradic
#310B40 #40170B #1A400B #0B3540
square
#310B40 #40170B #1A400B #0B3540
split-complementary
#310B40 #35400B #0B4017
monochromatic
#14041A #14041A #310B40 #591474 #811DA8

Accessibility & contrast

On white

16.77
#310B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B40
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B40#FFFFFF#000000##FFFFFF
##310B401.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B41
Deuteranopia (green-blind)
#081E3F
Tritanopia (blue-blind)
#301624
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310b40;
/* rgb */ color: rgb(49, 11, 64);
/* oklch */ color: oklch(24.5% 0.098 314.4);
Tailwind
colors: {
  custom: {
    50: '#6c4e75',
    500: '#310b40',
    950: '#000000',
  },
}
SCSS
$custom: #310b40;
$custom-light: #6c4e75;
$custom-dark: #000000;
JSON
{
  "hex": "#310b40",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 64
  },
  "hsl": {
    "h": 283.019,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24546,
    "c": 0.09839,
    "h": 314.4
  },
  "luminance": 0.01262
}

Semantic roles & 50–950 ramp

primary
#310B40
secondary
#417D2A
accent
#ED3A6D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310B40

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

Preview Lab → · Contrast checker → · Palette generator →

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