#331C30#331C30

#331C30 is a dark, muted purple. Relative luminance 0.017; OKLCH L 26.6% C 0.049 H 331.7°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#331C30
RGBrgb(51, 28, 48)
HSLhsl(308, 29%, 15%)
HSVhsv(308, 45%, 20%)
CMYKcmyk(0%, 45.1%, 5.9%, 80%)
CIE-LABlab(14.10, 15.16, -8.58)
CIE-LCHlch(14.10, 17.42, 330.49°)
OKLaboklab(26.56% 0.043 -0.0232)
OKLCHoklch(26.56% 0.049 331.7)
XYZxyz(2.3140, 1.7478, 3.0112)
Luminance0.0175 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C30 #1C331F
analogous
#2A1C33 #331C30 #331C24
triadic
#331C30 #30331C #1C3033
tetradic
#331C30 #332A1C #1C331F #1C2433
square
#331C30 #332A1C #1C331F #1C2433
split-complementary
#331C30 #24331C #1C332A
monochromatic
#140B13 #140B13 #331C30 #5B3255 #82477A

Accessibility & contrast

On white

15.56
#331C30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#331C30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C30
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C30#FFFFFF#000000##FFFFFF
##331C301.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2231
Deuteranopia (green-blind)
#21252F
Tritanopia (blue-blind)
#351D23
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331c30;
/* rgb */ color: rgb(51, 28, 48);
/* oklch */ color: oklch(26.6% 0.049 331.7);
Tailwind
colors: {
  custom: {
    50: '#6b5868',
    500: '#331c30',
    950: '#000000',
  },
}
SCSS
$custom: #331c30;
$custom-light: #6b5868;
$custom-dark: #000000;
JSON
{
  "hex": "#331c30",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 48
  },
  "hsl": {
    "h": 307.826,
    "s": 29.114,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26558,
    "c": 0.04882,
    "h": 331.7
  },
  "luminance": 0.01748
}

Semantic roles & 50–950 ramp

primary
#331C30
secondary
#446749
accent
#C56F62
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060306
muted
#7A787A

Preview Lab

Preview with #331C30

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

Preview Lab → · Contrast checker → · Palette generator →

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