#310A33#310A33

#310A33 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.4% C 0.086 H 325.8°. Best body text is #FFFFFF at 17.19:1 contrast (WCAG AA passes).

Color values

HEX#310A33
RGBrgb(49, 10, 51)
HSLhsl(297, 67%, 12%)
HSVhsv(297, 80%, 20%)
CMYKcmyk(3.9%, 80.4%, 0%, 80%)
CIE-LABlab(9.87, 25.90, -17.38)
CIE-LCHlch(9.87, 31.19, 326.13°)
OKLaboklab(23.42% 0.0711 -0.0482)
OKLCHoklch(23.42% 0.086 325.8)
XYZxyz(1.9727, 1.1092, 3.2415)
Luminance0.0111 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A33 #0C330A
analogous
#1D0A33 #310A33 #330A21
triadic
#310A33 #33310A #0A3331
tetradic
#310A33 #331D0A #0C330A #0A2133
square
#310A33 #331D0A #0C330A #0A2133
split-complementary
#310A33 #21330A #0A331D
monochromatic
#19051A #19051A #310A33 #621466 #931E99

Accessibility & contrast

On white

17.19
#310A33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#310A33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310A33
17.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A33#FFFFFF#000000##FFFFFF
##310A331.0017.191.2217.19
#FFFFFF17.191.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041834
Deuteranopia (green-blind)
#131D32
Tritanopia (blue-blind)
#32101D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310a33;
/* rgb */ color: rgb(49, 10, 51);
/* oklch */ color: oklch(23.4% 0.086 325.8);
Tailwind
colors: {
  custom: {
    50: '#6b4d6b',
    500: '#310a33',
    950: '#000000',
  },
}
SCSS
$custom: #310a33;
$custom-light: #6b4d6b;
$custom-dark: #000000;
JSON
{
  "hex": "#310a33",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 51
  },
  "hsl": {
    "h": 297.073,
    "s": 67.213,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23419,
    "c": 0.0859,
    "h": 325.8
  },
  "luminance": 0.01109
}

Semantic roles & 50–950 ramp

primary
#310A33
secondary
#2C7028
accent
#EA3E46
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310A33

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

Preview Lab → · Contrast checker → · Palette generator →

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