#310532#310532

#310532 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.7% C 0.093 H 327.1°. Best body text is #FFFFFF at 17.52:1 contrast (WCAG AA passes).

Color values

HEX#310532
RGBrgb(49, 5, 50)
HSLhsl(299, 82%, 11%)
HSVhsv(299, 90%, 20%)
CMYKcmyk(2%, 90%, 0%, 80.4%)
CIE-LABlab(8.92, 28.19, -18.15)
CIE-LCHlch(8.92, 33.53, 327.22°)
OKLaboklab(22.72% 0.0781 -0.0504)
OKLCHoklch(22.72% 0.093 327.1)
XYZxyz(1.8966, 0.9919, 3.1086)
Luminance0.0099 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310532 #063205
analogous
#1A0532 #310532 #32051C
triadic
#310532 #323105 #053231
tetradic
#310532 #321A05 #063205 #051C32
square
#310532 #321A05 #063205 #051C32
split-complementary
#310532 #1C3205 #05321A
monochromatic
#1B031C #1B031C #310532 #680B6A #9E10A1

Accessibility & contrast

On white

17.52
#310532 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#310532 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310532
17.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310532#FFFFFF#000000##FFFFFF
##3105321.0017.521.2017.52
#FFFFFF17.521.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001633
Deuteranopia (green-blind)
#101B31
Tritanopia (blue-blind)
#330C1B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310532;
/* rgb */ color: rgb(49, 5, 50);
/* oklch */ color: oklch(22.7% 0.093 327.1);
Tailwind
colors: {
  custom: {
    50: '#6b4a6a',
    500: '#310532',
    950: '#000000',
  },
}
SCSS
$custom: #310532;
$custom-light: #6b4a6a;
$custom-dark: #000000;
JSON
{
  "hex": "#310532",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 50
  },
  "hsl": {
    "h": 298.667,
    "s": 81.818,
    "l": 10.784
  },
  "oklch": {
    "l": 0.2272,
    "c": 0.09295,
    "h": 327.1
  },
  "luminance": 0.00992
}

Semantic roles & 50–950 ramp

primary
#310532
secondary
#21731F
accent
#F83034
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310532

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

Preview Lab → · Contrast checker → · Palette generator →

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