#310A3E#310A3E

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

Color values

HEX#310A3E
RGBrgb(49, 10, 62)
HSLhsl(285, 72%, 14%)
HSVhsv(285, 84%, 24%)
CMYKcmyk(21%, 83.9%, 0%, 75.7%)
CIE-LABlab(10.69, 28.41, -24.01)
CIE-LCHlch(10.69, 37.20, 319.80°)
OKLaboklab(24.27% 0.0703 -0.0676)
OKLCHoklch(24.27% 0.098 316.1)
XYZxyz(2.2445, 1.2179, 4.6733)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A3E #173E0A
analogous
#170A3E #310A3E #3E0A31
triadic
#310A3E #3E310A #0A3E31
tetradic
#310A3E #3E170A #173E0A #0A313E
square
#310A3E #3E170A #173E0A #0A313E
split-complementary
#310A3E #313E0A #0A3E17
monochromatic
#15041A #15041A #310A3E #5B1373 #841BA7

Accessibility & contrast

On white

16.89
#310A3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#310A3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310A3E
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A3E#FFFFFF#000000##FFFFFF
##310A3E1.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3F
Deuteranopia (green-blind)
#0A1E3D
Tritanopia (blue-blind)
#301523
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310a3e;
/* rgb */ color: rgb(49, 10, 62);
/* oklch */ color: oklch(24.3% 0.098 316.1);
Tailwind
colors: {
  custom: {
    50: '#6b4e74',
    500: '#310a3e',
    950: '#000000',
  },
}
SCSS
$custom: #310a3e;
$custom-light: #6b4e74;
$custom-dark: #000000;
JSON
{
  "hex": "#310a3e",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 62
  },
  "hsl": {
    "h": 285,
    "s": 72.222,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24267,
    "c": 0.09756,
    "h": 316.1
  },
  "luminance": 0.01218
}

Semantic roles & 50–950 ramp

primary
#310A3E
secondary
#3D7B28
accent
#EF3966
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310A3E

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

Preview Lab → · Contrast checker → · Palette generator →

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