#331A3A#331A3A

#331A3A is a dark, moderate purple. Relative luminance 0.017; OKLCH L 26.7% C 0.066 H 318.6°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#331A3A
RGBrgb(51, 26, 58)
HSLhsl(287, 38%, 16%)
HSVhsv(287, 55%, 23%)
CMYKcmyk(12.1%, 55.2%, 0%, 77.3%)
CIE-LABlab(14.11, 18.90, -15.71)
CIE-LCHlch(14.11, 24.57, 320.26°)
OKLaboklab(26.73% 0.0493 -0.0435)
OKLCHoklch(26.73% 0.066 318.6)
XYZxyz(2.4983, 1.7482, 4.2080)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A3A #213A1A
analogous
#231A3A #331A3A #3A1A31
triadic
#331A3A #3A331A #1A3A33
tetradic
#331A3A #3A231A #213A1A #1A313A
square
#331A3A #3A231A #213A1A #1A313A
split-complementary
#331A3A #313A1A #1A3A23
monochromatic
#130915 #130915 #331A3A #582D64 #7D408F

Accessibility & contrast

On white

15.56
#331A3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#331A3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A3A
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A3A#FFFFFF#000000##FFFFFF
##331A3A1.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15223B
Deuteranopia (green-blind)
#1C2539
Tritanopia (blue-blind)
#331E27
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331a3a;
/* rgb */ color: rgb(51, 26, 58);
/* oklch */ color: oklch(26.7% 0.066 318.6);
Tailwind
colors: {
  custom: {
    50: '#6b5770',
    500: '#331a3a',
    950: '#000000',
  },
}
SCSS
$custom: #331a3a;
$custom-light: #6b5770;
$custom-dark: #000000;
JSON
{
  "hex": "#331a3a",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 58
  },
  "hsl": {
    "h": 286.875,
    "s": 38.095,
    "l": 16.471
  },
  "oklch": {
    "l": 0.26733,
    "c": 0.06572,
    "h": 318.6
  },
  "luminance": 0.01748
}

Semantic roles & 50–950 ramp

primary
#331A3A
secondary
#4B6F40
accent
#CE5A73
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070307
muted
#7A787A

Preview Lab

Preview with #331A3A

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

Preview Lab → · Contrast checker → · Palette generator →

#331A3A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva