#310B33#310B33

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

Color values

HEX#310B33
RGBrgb(49, 11, 51)
HSLhsl(297, 65%, 12%)
HSVhsv(297, 78%, 20%)
CMYKcmyk(3.9%, 78.4%, 0%, 80%)
CIE-LABlab(10.04, 25.41, -17.11)
CIE-LCHlch(10.04, 30.64, 326.05°)
OKLaboklab(23.54% 0.0697 -0.0475)
OKLCHoklch(23.54% 0.084 325.8)
XYZxyz(1.9838, 1.1315, 3.2452)
Luminance0.0113 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B33 #0D330B
analogous
#1D0B33 #310B33 #330B21
triadic
#310B33 #33310B #0B3331
tetradic
#310B33 #331D0B #0D330B #0B2133
square
#310B33 #331D0B #0D330B #0B2133
split-complementary
#310B33 #21330B #0B331D
monochromatic
#180519 #180519 #310B33 #611665 #922198

Accessibility & contrast

On white

17.13
#310B33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#310B33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310B33
17.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B33#FFFFFF#000000##FFFFFF
##310B331.0017.131.2317.13
#FFFFFF17.131.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051934
Deuteranopia (green-blind)
#131D32
Tritanopia (blue-blind)
#32111D
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310b33;
/* rgb */ color: rgb(49, 11, 51);
/* oklch */ color: oklch(23.5% 0.084 325.8);
Tailwind
colors: {
  custom: {
    50: '#6b4e6b',
    500: '#310b33',
    950: '#000000',
  },
}
SCSS
$custom: #310b33;
$custom-light: #6b4e6b;
$custom-dark: #000000;
JSON
{
  "hex": "#310b33",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 51
  },
  "hsl": {
    "h": 297,
    "s": 64.516,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23542,
    "c": 0.08434,
    "h": 325.8
  },
  "luminance": 0.01131
}

Semantic roles & 50–950 ramp

primary
#310B33
secondary
#2E702A
accent
#E84049
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310B33

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

Preview Lab → · Contrast checker → · Palette generator →

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