#310A3F#310A3F

#310A3F is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.3% C 0.099 H 315.4°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#310A3F
RGBrgb(49, 10, 63)
HSLhsl(284, 73%, 14%)
HSVhsv(284, 84%, 25%)
CMYKcmyk(22.2%, 84.1%, 0%, 75.3%)
CIE-LABlab(10.77, 28.65, -24.59)
CIE-LCHlch(10.77, 37.76, 319.36°)
OKLaboklab(24.35% 0.0702 -0.0693)
OKLCHoklch(24.35% 0.099 315.4)
XYZxyz(2.2722, 1.2290, 4.8192)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A3F #183F0A
analogous
#170A3F #310A3F #3F0A33
triadic
#310A3F #3F310A #0A3F31
tetradic
#310A3F #3F170A #183F0A #0A333F
square
#310A3F #3F170A #183F0A #0A333F
split-complementary
#310A3F #333F0A #0A3F17
monochromatic
#15041A #15041A #310A3F #5A1274 #831BA9

Accessibility & contrast

On white

16.86
#310A3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310A3F
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A3F#FFFFFF#000000##FFFFFF
##310A3F1.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310a3f;
/* rgb */ color: rgb(49, 10, 63);
/* oklch */ color: oklch(24.3% 0.099 315.4);
Tailwind
colors: {
  custom: {
    50: '#6c4e74',
    500: '#310a3f',
    950: '#000000',
  },
}
SCSS
$custom: #310a3f;
$custom-light: #6c4e74;
$custom-dark: #000000;
JSON
{
  "hex": "#310a3f",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 63
  },
  "hsl": {
    "h": 284.151,
    "s": 72.603,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24349,
    "c": 0.09864,
    "h": 315.4
  },
  "luminance": 0.01229
}

Semantic roles & 50–950 ramp

primary
#310A3F
secondary
#3F7C29
accent
#EF3869
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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