#331A30#331A30

#331A30 is a dark, muted purple. Relative luminance 0.017; OKLCH L 26.2% C 0.053 H 331.4°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#331A30
RGBrgb(51, 26, 48)
HSLhsl(307, 32%, 15%)
HSVhsv(307, 49%, 20%)
CMYKcmyk(0%, 49%, 5.9%, 80%)
CIE-LABlab(13.57, 16.50, -9.40)
CIE-LCHlch(13.57, 18.99, 330.33°)
OKLaboklab(26.16% 0.0468 -0.0255)
OKLCHoklch(26.16% 0.053 331.4)
XYZxyz(2.2681, 1.6561, 2.9959)
Luminance0.0166 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A30 #1A331D
analogous
#291A33 #331A30 #331A23
triadic
#331A30 #30331A #1A3033
tetradic
#331A30 #33291A #1A331D #1A2333
square
#331A30 #33291A #1A331D #1A2333
split-complementary
#331A30 #23331A #1A3329
monochromatic
#140A13 #140A13 #331A30 #5C2F56 #84437C

Accessibility & contrast

On white

15.78
#331A30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#331A30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A30
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A30#FFFFFF#000000##FFFFFF
##331A301.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192131
Deuteranopia (green-blind)
#20242F
Tritanopia (blue-blind)
#351C22
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331a30;
/* rgb */ color: rgb(51, 26, 48);
/* oklch */ color: oklch(26.2% 0.053 331.4);
Tailwind
colors: {
  custom: {
    50: '#6b5768',
    500: '#331a30',
    950: '#000000',
  },
}
SCSS
$custom: #331a30;
$custom-light: #6b5768;
$custom-dark: #000000;
JSON
{
  "hex": "#331a30",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 48
  },
  "hsl": {
    "h": 307.2,
    "s": 32.468,
    "l": 15.098
  },
  "oklch": {
    "l": 0.26155,
    "c": 0.05328,
    "h": 331.4
  },
  "luminance": 0.01656
}

Semantic roles & 50–950 ramp

primary
#331A30
secondary
#416846
accent
#C96C5F
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#070306
muted
#7A787A

Preview Lab

Preview with #331A30

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

Preview Lab → · Contrast checker → · Palette generator →

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