#311335#311335

#311335 is a very dark, moderate purple. Relative luminance 0.014; OKLCH L 24.9% C 0.072 H 322.8°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#311335
RGBrgb(49, 19, 53)
HSLhsl(293, 47%, 14%)
HSVhsv(293, 64%, 21%)
CMYKcmyk(7.5%, 64.2%, 0%, 79.2%)
CIE-LABlab(11.80, 21.42, -15.79)
CIE-LCHlch(11.80, 26.61, 323.60°)
OKLaboklab(24.86% 0.0576 -0.0437)
OKLCHoklch(24.86% 0.072 322.8)
XYZxyz(2.1420, 1.3759, 3.5202)
Luminance0.0138 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311335 #173513
analogous
#201335 #311335 #351328
triadic
#311335 #353113 #133531
tetradic
#311335 #352013 #173513 #132835
square
#311335 #352013 #173513 #132835
split-complementary
#311335 #283513 #133520
monochromatic
#150817 #150817 #311335 #5B2362 #84338F

Accessibility & contrast

On white

16.47
#311335 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#311335 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311335
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311335#FFFFFF#000000##FFFFFF
##3113351.0016.471.2816.47
#FFFFFF16.471.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1D36
Deuteranopia (green-blind)
#172034
Tritanopia (blue-blind)
#321821
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #311335;
/* rgb */ color: rgb(49, 19, 53);
/* oklch */ color: oklch(24.9% 0.072 322.8);
Tailwind
colors: {
  custom: {
    50: '#6a526c',
    500: '#311335',
    950: '#000000',
  },
}
SCSS
$custom: #311335;
$custom-light: #6a526c;
$custom-dark: #000000;
JSON
{
  "hex": "#311335",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 53
  },
  "hsl": {
    "h": 292.941,
    "s": 47.222,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24861,
    "c": 0.07229,
    "h": 322.8
  },
  "luminance": 0.01376
}

Semantic roles & 50–950 ramp

primary
#311335
secondary
#3D6D37
accent
#D75161
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060207
muted
#7A787A

Preview Lab

Preview with #311335

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

Preview Lab → · Contrast checker → · Palette generator →

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