#311533#311533

#311533 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.1% C 0.066 H 324.8°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#311533
RGBrgb(49, 21, 51)
HSLhsl(296, 42%, 14%)
HSVhsv(296, 59%, 20%)
CMYKcmyk(3.9%, 58.8%, 0%, 80%)
CIE-LABlab(12.15, 19.70, -13.80)
CIE-LCHlch(12.15, 24.05, 325.00°)
OKLaboklab(25.08% 0.0538 -0.038)
OKLCHoklch(25.08% 0.066 324.8)
XYZxyz(2.1323, 1.4284, 3.2947)
Luminance0.0143 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311533 #173315
analogous
#221533 #311533 #331526
triadic
#311533 #333115 #153331
tetradic
#311533 #332215 #173315 #152633
square
#311533 #332215 #173315 #152633
split-complementary
#311533 #263315 #153322
monochromatic
#150916 #150916 #311533 #5B275E #84398A

Accessibility & contrast

On white

16.33
#311533 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#311533 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311533
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311533#FFFFFF#000000##FFFFFF
##3115331.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111E34
Deuteranopia (green-blind)
#1A2132
Tritanopia (blue-blind)
#321921
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #311533;
/* rgb */ color: rgb(49, 21, 51);
/* oklch */ color: oklch(25.1% 0.066 324.8);
Tailwind
colors: {
  custom: {
    50: '#6a536a',
    500: '#311533',
    950: '#000000',
  },
}
SCSS
$custom: #311533;
$custom-light: #6a536a;
$custom-dark: #000000;
JSON
{
  "hex": "#311533",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 51
  },
  "hsl": {
    "h": 296,
    "s": 41.667,
    "l": 14.118
  },
  "oklch": {
    "l": 0.2508,
    "c": 0.06588,
    "h": 324.8
  },
  "luminance": 0.01428
}

Semantic roles & 50–950 ramp

primary
#311533
secondary
#3D6A3A
accent
#D1565F
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #311533

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

Preview Lab → · Contrast checker → · Palette generator →

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