#310C3E#310C3E

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

Color values

HEX#310C3E
RGBrgb(49, 12, 62)
HSLhsl(284, 68%, 15%)
HSVhsv(284, 81%, 24%)
CMYKcmyk(21%, 80.6%, 0%, 75.7%)
CIE-LABlab(11.02, 27.47, -23.48)
CIE-LCHlch(11.02, 36.14, 319.48°)
OKLaboklab(24.5% 0.0679 -0.0661)
OKLCHoklch(24.5% 0.095 315.8)
XYZxyz(2.2675, 1.2638, 4.6810)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C3E #193E0C
analogous
#180C3E #310C3E #3E0C32
triadic
#310C3E #3E310C #0C3E31
tetradic
#310C3E #3E180C #193E0C #0C323E
square
#310C3E #3E180C #193E0C #0C323E
split-complementary
#310C3E #323E0C #0C3E18
monochromatic
#14051A #14051A #310C3E #5A1671 #8220A5

Accessibility & contrast

On white

16.76
#310C3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C3E
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C3E#FFFFFF#000000##FFFFFF
##310C3E1.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3F
Deuteranopia (green-blind)
#0B1F3D
Tritanopia (blue-blind)
#301624
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310c3e;
/* rgb */ color: rgb(49, 12, 62);
/* oklch */ color: oklch(24.5% 0.095 315.8);
Tailwind
colors: {
  custom: {
    50: '#6b4f73',
    500: '#310c3e',
    950: '#000000',
  },
}
SCSS
$custom: #310c3e;
$custom-light: #6b4f73;
$custom-dark: #000000;
JSON
{
  "hex": "#310c3e",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 62
  },
  "hsl": {
    "h": 284.4,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24502,
    "c": 0.09475,
    "h": 315.8
  },
  "luminance": 0.01264
}

Semantic roles & 50–950 ramp

primary
#310C3E
secondary
#407A2C
accent
#EA3D6A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310C3E

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

Preview Lab → · Contrast checker → · Palette generator →

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