#331034#331034

#331034 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.6% C 0.078 H 326.5°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#331034
RGBrgb(51, 16, 52)
HSLhsl(298, 53%, 13%)
HSVhsv(298, 69%, 20%)
CMYKcmyk(1.9%, 69.2%, 0%, 79.6%)
CIE-LABlab(11.43, 23.61, -15.62)
CIE-LCHlch(11.43, 28.31, 326.52°)
OKLaboklab(24.65% 0.0652 -0.0431)
OKLCHoklch(24.65% 0.078 326.5)
XYZxyz(2.1703, 1.3225, 3.3891)
Luminance0.0132 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331034 #113410
analogous
#211034 #331034 #341023
triadic
#331034 #343310 #103433
tetradic
#331034 #342110 #113410 #102334
square
#331034 #342110 #113410 #102334
split-complementary
#331034 #233410 #103421
monochromatic
#170717 #170717 #331034 #611E63 #8F2D92

Accessibility & contrast

On white

16.61
#331034 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#331034 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331034
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331034#FFFFFF#000000##FFFFFF
##3310341.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1B35
Deuteranopia (green-blind)
#172033
Tritanopia (blue-blind)
#351520
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #331034;
/* rgb */ color: rgb(51, 16, 52);
/* oklch */ color: oklch(24.6% 0.078 326.5);
Tailwind
colors: {
  custom: {
    50: '#6c516b',
    500: '#331034',
    950: '#000000',
  },
}
SCSS
$custom: #331034;
$custom-light: #6c516b;
$custom-dark: #000000;
JSON
{
  "hex": "#331034",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 52
  },
  "hsl": {
    "h": 298.333,
    "s": 52.941,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24646,
    "c": 0.07819,
    "h": 326.5
  },
  "luminance": 0.01322
}

Semantic roles & 50–950 ramp

primary
#331034
secondary
#346E32
accent
#DC4B4F
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #331034

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

Preview Lab → · Contrast checker → · Palette generator →

#331034 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva