#331A3F#331A3F

#331A3F is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.1% C 0.072 H 313.7°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#331A3F
RGBrgb(51, 26, 63)
HSLhsl(281, 42%, 17%)
HSVhsv(281, 59%, 25%)
CMYKcmyk(19%, 58.7%, 0%, 75.3%)
CIE-LABlab(14.41, 20.19, -18.76)
CIE-LCHlch(14.41, 27.56, 317.10°)
OKLaboklab(27.06% 0.05 -0.0523)
OKLCHoklch(27.06% 0.072 313.7)
XYZxyz(2.6317, 1.8015, 4.9108)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A3F #263F1A
analogous
#211A3F #331A3F #3F1A38
triadic
#331A3F #3F331A #1A3F33
tetradic
#331A3F #3F211A #263F1A #1A383F
square
#331A3F #3F211A #263F1A #1A383F
split-complementary
#331A3F #383F1A #1A3F21
monochromatic
#120916 #120916 #331A3F #562C6A #793E96

Accessibility & contrast

On white

15.44
#331A3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331A3F
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A3F#FFFFFF#000000##FFFFFF
##331A3F1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112340
Deuteranopia (green-blind)
#19253E
Tritanopia (blue-blind)
#322029
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331a3f;
/* rgb */ color: rgb(51, 26, 63);
/* oklch */ color: oklch(27.1% 0.072 313.7);
Tailwind
colors: {
  custom: {
    50: '#6c5774',
    500: '#331a3f',
    950: '#000000',
  },
}
SCSS
$custom: #331a3f;
$custom-light: #6c5774;
$custom-dark: #000000;
JSON
{
  "hex": "#331a3f",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 63
  },
  "hsl": {
    "h": 280.541,
    "s": 41.573,
    "l": 17.451
  },
  "oklch": {
    "l": 0.27057,
    "c": 0.0724,
    "h": 313.7
  },
  "luminance": 0.01801
}

Semantic roles & 50–950 ramp

primary
#331A3F
secondary
#517540
accent
#D1567E
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #331A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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