#331A3D#331A3D

#331A3D is a dark, moderate purple. Relative luminance 0.018; OKLCH L 26.9% C 0.070 H 315.6°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#331A3D
RGBrgb(51, 26, 61)
HSLhsl(283, 40%, 17%)
HSVhsv(283, 57%, 24%)
CMYKcmyk(16.4%, 57.4%, 0%, 76.1%)
CIE-LABlab(14.29, 19.66, -17.55)
CIE-LCHlch(14.29, 26.36, 318.25°)
OKLaboklab(26.92% 0.0498 -0.0488)
OKLCHoklch(26.92% 0.07 315.6)
XYZxyz(2.5768, 1.7796, 4.6217)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A3D #243D1A
analogous
#221A3D #331A3D #3D1A36
triadic
#331A3D #3D331A #1A3D33
tetradic
#331A3D #3D221A #243D1A #1A363D
square
#331A3D #3D221A #243D1A #1A363D
split-complementary
#331A3D #363D1A #1A3D22
monochromatic
#120915 #120915 #331A3D #572C68 #7B3F93

Accessibility & contrast

On white

15.49
#331A3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#331A3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A3D
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A3D#FFFFFF#000000##FFFFFF
##331A3D1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13233E
Deuteranopia (green-blind)
#1A253C
Tritanopia (blue-blind)
#321F28
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331a3d;
/* rgb */ color: rgb(51, 26, 61);
/* oklch */ color: oklch(26.9% 0.070 315.6);
Tailwind
colors: {
  custom: {
    50: '#6c5772',
    500: '#331a3d',
    950: '#000000',
  },
}
SCSS
$custom: #331a3d;
$custom-light: #6c5772;
$custom-dark: #000000;
JSON
{
  "hex": "#331a3d",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 61
  },
  "hsl": {
    "h": 282.857,
    "s": 40.23,
    "l": 17.059
  },
  "oklch": {
    "l": 0.26925,
    "c": 0.0697,
    "h": 315.6
  },
  "luminance": 0.0178
}

Semantic roles & 50–950 ramp

primary
#331A3D
secondary
#4F7340
accent
#D0587A
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070308
muted
#7A787B

Preview Lab

Preview with #331A3D

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

Preview Lab → · Contrast checker → · Palette generator →

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