#331B3E#331B3E

#331B3E is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.2% C 0.069 H 314.3°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#331B3E
RGBrgb(51, 27, 62)
HSLhsl(281, 39%, 17%)
HSVhsv(281, 56%, 24%)
CMYKcmyk(17.7%, 56.5%, 0%, 75.7%)
CIE-LABlab(14.60, 19.27, -17.76)
CIE-LCHlch(14.60, 26.21, 317.34°)
OKLaboklab(27.18% 0.0482 -0.0494)
OKLCHoklch(27.18% 0.069 314.3)
XYZxyz(2.6265, 1.8355, 4.7724)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B3E #263E1B
analogous
#221B3E #331B3E #3E1B38
triadic
#331B3E #3E331B #1B3E33
tetradic
#331B3E #3E221B #263E1B #1B383E
square
#331B3E #3E221B #263E1B #1B383E
split-complementary
#331B3E #383E1B #1B3E22
monochromatic
#120915 #120915 #331B3E #562E69 #794093

Accessibility & contrast

On white

15.36
#331B3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#331B3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331B3E
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B3E#FFFFFF#000000##FFFFFF
##331B3E1.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13233F
Deuteranopia (green-blind)
#1A253D
Tritanopia (blue-blind)
#322029
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331b3e;
/* rgb */ color: rgb(51, 27, 62);
/* oklch */ color: oklch(27.2% 0.069 314.3);
Tailwind
colors: {
  custom: {
    50: '#6c5873',
    500: '#331b3e',
    950: '#000000',
  },
}
SCSS
$custom: #331b3e;
$custom-light: #6c5873;
$custom-dark: #000000;
JSON
{
  "hex": "#331b3e",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 62
  },
  "hsl": {
    "h": 281.143,
    "s": 39.326,
    "l": 17.451
  },
  "oklch": {
    "l": 0.27178,
    "c": 0.06903,
    "h": 314.3
  },
  "luminance": 0.01835
}

Semantic roles & 50–950 ramp

primary
#331B3E
secondary
#517342
accent
#CF597E
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #331B3E

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

Preview Lab → · Contrast checker → · Palette generator →

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