#331B30#331B30

#331B30 is a dark, muted purple. Relative luminance 0.017; OKLCH L 26.4% C 0.051 H 331.5°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#331B30
RGBrgb(51, 27, 48)
HSLhsl(308, 31%, 15%)
HSVhsv(308, 47%, 20%)
CMYKcmyk(0%, 47.1%, 5.9%, 80%)
CIE-LABlab(13.83, 15.83, -8.99)
CIE-LCHlch(13.83, 18.21, 330.41°)
OKLaboklab(26.36% 0.0449 -0.0243)
OKLCHoklch(26.36% 0.051 331.5)
XYZxyz(2.2907, 1.7012, 3.0034)
Luminance0.0170 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B30 #1B331E
analogous
#2A1B33 #331B30 #331B24
triadic
#331B30 #30331B #1B3033
tetradic
#331B30 #332A1B #1B331E #1B2433
square
#331B30 #332A1B #1B331E #1B2433
split-complementary
#331B30 #24331B #1B332A
monochromatic
#140B13 #140B13 #331B30 #5B3056 #83457B

Accessibility & contrast

On white

15.67
#331B30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#331B30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331B30
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B30#FFFFFF#000000##FFFFFF
##331B301.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2131
Deuteranopia (green-blind)
#21242F
Tritanopia (blue-blind)
#351D23
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331b30;
/* rgb */ color: rgb(51, 27, 48);
/* oklch */ color: oklch(26.4% 0.051 331.5);
Tailwind
colors: {
  custom: {
    50: '#6b5868',
    500: '#331b30',
    950: '#000000',
  },
}
SCSS
$custom: #331b30;
$custom-light: #6b5868;
$custom-dark: #000000;
JSON
{
  "hex": "#331b30",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 48
  },
  "hsl": {
    "h": 307.5,
    "s": 30.769,
    "l": 15.294
  },
  "oklch": {
    "l": 0.26355,
    "c": 0.05106,
    "h": 331.5
  },
  "luminance": 0.01701
}

Semantic roles & 50–950 ramp

primary
#331B30
secondary
#436747
accent
#C76E61
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#070306
muted
#7A787A

Preview Lab

Preview with #331B30

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

Preview Lab → · Contrast checker → · Palette generator →

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