#310332#310332

#310332 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.5% C 0.096 H 327.3°. Best body text is #FFFFFF at 17.65:1 contrast (WCAG AA passes).

Color values

HEX#310332
RGBrgb(49, 3, 50)
HSLhsl(299, 89%, 10%)
HSVhsv(299, 94%, 20%)
CMYKcmyk(2%, 94%, 0%, 80.4%)
CIE-LABlab(8.55, 29.26, -18.74)
CIE-LCHlch(8.55, 34.75, 327.36°)
OKLaboklab(22.46% 0.0811 -0.0521)
OKLCHoklch(22.46% 0.096 327.3)
XYZxyz(1.8749, 0.9485, 3.1013)
Luminance0.0095 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310332 #043203
analogous
#190332 #310332 #32031B
triadic
#310332 #323103 #033231
tetradic
#310332 #321903 #043203 #031B32
square
#310332 #321903 #043203 #031B32
split-complementary
#310332 #1B3203 #033219
monochromatic
#1C021D #1C021D #310332 #6A066C #A20AA5

Accessibility & contrast

On white

17.65
#310332 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#310332 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310332
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310332#FFFFFF#000000##FFFFFF
##3103321.0017.651.1917.65
#FFFFFF17.651.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001533
Deuteranopia (green-blind)
#0F1B31
Tritanopia (blue-blind)
#330A1A
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310332;
/* rgb */ color: rgb(49, 3, 50);
/* oklch */ color: oklch(22.5% 0.096 327.3);
Tailwind
colors: {
  custom: {
    50: '#6b496a',
    500: '#310332',
    950: '#000000',
  },
}
SCSS
$custom: #310332;
$custom-light: #6b496a;
$custom-dark: #000000;
JSON
{
  "hex": "#310332",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 50
  },
  "hsl": {
    "h": 298.723,
    "s": 88.679,
    "l": 10.392
  },
  "oklch": {
    "l": 0.22458,
    "c": 0.09639,
    "h": 327.3
  },
  "luminance": 0.00948
}

Semantic roles & 50–950 ramp

primary
#310332
secondary
#1D751B
accent
#FF292E
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310332

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

Preview Lab → · Contrast checker → · Palette generator →

#310332 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva