#310B3F#310B3F

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

Color values

HEX#310B3F
RGBrgb(49, 11, 63)
HSLhsl(284, 70%, 15%)
HSVhsv(284, 83%, 25%)
CMYKcmyk(22.2%, 82.5%, 0%, 75.3%)
CIE-LABlab(10.93, 28.19, -24.33)
CIE-LCHlch(10.93, 37.24, 319.20°)
OKLaboklab(24.46% 0.069 -0.0686)
OKLCHoklch(24.46% 0.097 315.2)
XYZxyz(2.2834, 1.2513, 4.8229)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B3F #193F0B
analogous
#170B3F #310B3F #3F0B33
triadic
#310B3F #3F310B #0B3F31
tetradic
#310B3F #3F170B #193F0B #0B333F
square
#310B3F #3F170B #193F0B #0B333F
split-complementary
#310B3F #333F0B #0B3F17
monochromatic
#14051A #14051A #310B3F #5A1473 #821DA7

Accessibility & contrast

On white

16.80
#310B3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B3F
16.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B3F#FFFFFF#000000##FFFFFF
##310B3F1.0016.801.2516.80
#FFFFFF16.801.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B40
Deuteranopia (green-blind)
#091E3E
Tritanopia (blue-blind)
#301624
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310b3f;
/* rgb */ color: rgb(49, 11, 63);
/* oklch */ color: oklch(24.5% 0.097 315.2);
Tailwind
colors: {
  custom: {
    50: '#6b4e74',
    500: '#310b3f',
    950: '#000000',
  },
}
SCSS
$custom: #310b3f;
$custom-light: #6b4e74;
$custom-dark: #000000;
JSON
{
  "hex": "#310b3f",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 63
  },
  "hsl": {
    "h": 283.846,
    "s": 70.27,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24463,
    "c": 0.09729,
    "h": 315.2
  },
  "luminance": 0.01251
}

Semantic roles & 50–950 ramp

primary
#310B3F
secondary
#407C2A
accent
#ED3B6B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310B3F

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

Preview Lab → · Contrast checker → · Palette generator →

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