#331B3B#331B3B

#331B3B is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.0% C 0.065 H 317.2°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#331B3B
RGBrgb(51, 27, 59)
HSLhsl(285, 37%, 17%)
HSVhsv(285, 54%, 23%)
CMYKcmyk(13.6%, 54.2%, 0%, 76.9%)
CIE-LABlab(14.42, 18.49, -15.93)
CIE-LCHlch(14.42, 24.41, 319.26°)
OKLaboklab(26.99% 0.0477 -0.0441)
OKLCHoklch(26.99% 0.065 317.2)
XYZxyz(2.5465, 1.8035, 4.3508)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B3B #233B1B
analogous
#231B3B #331B3B #3B1B33
triadic
#331B3B #3B331B #1B3B33
tetradic
#331B3B #3B231B #233B1B #1B333B
square
#331B3B #3B231B #233B1B #1B333B
split-complementary
#331B3B #333B1B #1B3B23
monochromatic
#120A15 #120A15 #331B3B #572E65 #7C418F

Accessibility & contrast

On white

15.43
#331B3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331B3B
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B3B#FFFFFF#000000##FFFFFF
##331B3B1.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15233C
Deuteranopia (green-blind)
#1C253A
Tritanopia (blue-blind)
#331F28
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331b3b;
/* rgb */ color: rgb(51, 27, 59);
/* oklch */ color: oklch(27.0% 0.065 317.2);
Tailwind
colors: {
  custom: {
    50: '#6b5871',
    500: '#331b3b',
    950: '#000000',
  },
}
SCSS
$custom: #331b3b;
$custom-light: #6b5871;
$custom-dark: #000000;
JSON
{
  "hex": "#331b3b",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 59
  },
  "hsl": {
    "h": 285,
    "s": 37.209,
    "l": 16.863
  },
  "oklch": {
    "l": 0.26986,
    "c": 0.06496,
    "h": 317.2
  },
  "luminance": 0.01803
}

Semantic roles & 50–950 ramp

primary
#331B3B
secondary
#4D7042
accent
#CD5B77
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070307
muted
#7A787A

Preview Lab

Preview with #331B3B

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

Preview Lab → · Contrast checker → · Palette generator →

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