#310232#310232

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

Color values

HEX#310232
RGBrgb(49, 2, 50)
HSLhsl(299, 92%, 10%)
HSVhsv(299, 96%, 20%)
CMYKcmyk(2%, 96%, 0%, 80.4%)
CIE-LABlab(8.37, 29.81, -19.04)
CIE-LCHlch(8.37, 35.37, 327.43°)
OKLaboklab(22.33% 0.0826 -0.053)
OKLCHoklch(22.33% 0.098 327.3)
XYZxyz(1.8640, 0.9268, 3.0977)
Luminance0.0093 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310232 #033202
analogous
#190232 #310232 #32021B
triadic
#310232 #323102 #023231
tetradic
#310232 #321902 #033202 #021B32
square
#310232 #321902 #033202 #021B32
split-complementary
#310232 #1B3202 #023219
monochromatic
#1D011D #1D011D #310232 #6B046D #A407A8

Accessibility & contrast

On white

17.72
#310232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310232
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310232#FFFFFF#000000##FFFFFF
##3102321.0017.721.1917.72
#FFFFFF17.721.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001433
Deuteranopia (green-blind)
#0E1A31
Tritanopia (blue-blind)
#33091A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310232;
/* rgb */ color: rgb(49, 2, 50);
/* oklch */ color: oklch(22.3% 0.098 327.3);
Tailwind
colors: {
  custom: {
    50: '#6c496a',
    500: '#310232',
    950: '#000000',
  },
}
SCSS
$custom: #310232;
$custom-light: #6c496a;
$custom-dark: #000000;
JSON
{
  "hex": "#310232",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 50
  },
  "hsl": {
    "h": 298.75,
    "s": 92.308,
    "l": 10.196
  },
  "oklch": {
    "l": 0.22325,
    "c": 0.09816,
    "h": 327.3
  },
  "luminance": 0.00927
}

Semantic roles & 50–950 ramp

primary
#310232
secondary
#1B7619
accent
#FF292D
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310232

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

Preview Lab → · Contrast checker → · Palette generator →

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