#310C33#310C33

#310C33 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.7% C 0.083 H 325.7°. Best body text is #FFFFFF at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#310C33
RGBrgb(49, 12, 51)
HSLhsl(297, 62%, 12%)
HSVhsv(297, 76%, 20%)
CMYKcmyk(3.9%, 76.5%, 0%, 80%)
CIE-LABlab(10.22, 24.91, -16.82)
CIE-LCHlch(10.22, 30.06, 325.97°)
OKLaboklab(23.67% 0.0683 -0.0466)
OKLCHoklch(23.67% 0.083 325.7)
XYZxyz(1.9956, 1.1551, 3.2492)
Luminance0.0115 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C33 #0E330C
analogous
#1E0C33 #310C33 #330C22
triadic
#310C33 #33310C #0C3331
tetradic
#310C33 #331E0C #0E330C #0C2233
square
#310C33 #331E0C #0E330C #0C2233
split-complementary
#310C33 #22330C #0C331E
monochromatic
#180619 #180619 #310C33 #611865 #902396

Accessibility & contrast

On white

17.06
#310C33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C33
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C33#FFFFFF#000000##FFFFFF
##310C331.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061934
Deuteranopia (green-blind)
#141E32
Tritanopia (blue-blind)
#32121E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310c33;
/* rgb */ color: rgb(49, 12, 51);
/* oklch */ color: oklch(23.7% 0.083 325.7);
Tailwind
colors: {
  custom: {
    50: '#6b4e6b',
    500: '#310c33',
    950: '#000000',
  },
}
SCSS
$custom: #310c33;
$custom-light: #6b4e6b;
$custom-dark: #000000;
JSON
{
  "hex": "#310c33",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 51
  },
  "hsl": {
    "h": 296.923,
    "s": 61.905,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23672,
    "c": 0.08272,
    "h": 325.7
  },
  "luminance": 0.01155
}

Semantic roles & 50–950 ramp

primary
#310C33
secondary
#2F6F2C
accent
#E5434B
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #310C33

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

Preview Lab → · Contrast checker → · Palette generator →

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