#331C3E#331C3E

#331C3E is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.4% C 0.067 H 313.9°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#331C3E
RGBrgb(51, 28, 62)
HSLhsl(281, 38%, 18%)
HSVhsv(281, 55%, 24%)
CMYKcmyk(17.7%, 54.8%, 0%, 75.7%)
CIE-LABlab(14.86, 18.61, -17.35)
CIE-LCHlch(14.86, 25.45, 317.00°)
OKLaboklab(27.37% 0.0465 -0.0482)
OKLCHoklch(27.37% 0.067 313.9)
XYZxyz(2.6499, 1.8822, 4.7802)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C3E #273E1C
analogous
#221C3E #331C3E #3E1C38
triadic
#331C3E #3E331C #1C3E33
tetradic
#331C3E #3E221C #273E1C #1C383E
square
#331C3E #3E221C #273E1C #1C383E
split-complementary
#331C3E #383E1C #1C3E22
monochromatic
#110A15 #110A15 #331C3E #562F68 #784292

Accessibility & contrast

On white

15.26
#331C3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#331C3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C3E
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C3E#FFFFFF#000000##FFFFFF
##331C3E1.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15243F
Deuteranopia (green-blind)
#1B263D
Tritanopia (blue-blind)
#32212A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331c3e;
/* rgb */ color: rgb(51, 28, 62);
/* oklch */ color: oklch(27.4% 0.067 313.9);
Tailwind
colors: {
  custom: {
    50: '#6c5973',
    500: '#331c3e',
    950: '#000000',
  },
}
SCSS
$custom: #331c3e;
$custom-light: #6c5973;
$custom-dark: #000000;
JSON
{
  "hex": "#331c3e",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 62
  },
  "hsl": {
    "h": 280.588,
    "s": 37.778,
    "l": 17.647
  },
  "oklch": {
    "l": 0.27369,
    "c": 0.06699,
    "h": 313.9
  },
  "luminance": 0.01882
}

Semantic roles & 50–950 ramp

primary
#331C3E
secondary
#527343
accent
#CE5A7F
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #331C3E

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

Preview Lab → · Contrast checker → · Palette generator →

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