#331234#331234

#331234 is a very dark, moderate purple. Relative luminance 0.014; OKLCH L 25.0% C 0.074 H 326.4°. Best body text is #FFFFFF at 16.45:1 contrast (WCAG AA passes).

Color values

HEX#331234
RGBrgb(51, 18, 52)
HSLhsl(298, 49%, 14%)
HSVhsv(298, 65%, 20%)
CMYKcmyk(1.9%, 65.4%, 0%, 79.6%)
CIE-LABlab(11.85, 22.46, -14.95)
CIE-LCHlch(11.85, 26.98, 326.35°)
OKLaboklab(24.96% 0.062 -0.0412)
OKLCHoklch(24.96% 0.074 326.4)
XYZxyz(2.2013, 1.3845, 3.3994)
Luminance0.0138 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331234 #133412
analogous
#221234 #331234 #341224
triadic
#331234 #343312 #123433
tetradic
#331234 #342212 #133412 #122434
square
#331234 #342212 #133412 #122434
split-complementary
#331234 #243412 #123422
monochromatic
#160817 #160817 #331234 #602261 #8C318F

Accessibility & contrast

On white

16.45
#331234 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#331234 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331234
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331234#FFFFFF#000000##FFFFFF
##3312341.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1D35
Deuteranopia (green-blind)
#192133
Tritanopia (blue-blind)
#341620
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #331234;
/* rgb */ color: rgb(51, 18, 52);
/* oklch */ color: oklch(25.0% 0.074 326.4);
Tailwind
colors: {
  custom: {
    50: '#6c526b',
    500: '#331234',
    950: '#000000',
  },
}
SCSS
$custom: #331234;
$custom-light: #6c526b;
$custom-dark: #000000;
JSON
{
  "hex": "#331234",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 52
  },
  "hsl": {
    "h": 298.235,
    "s": 48.571,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24955,
    "c": 0.07446,
    "h": 326.4
  },
  "luminance": 0.01384
}

Semantic roles & 50–950 ramp

primary
#331234
secondary
#376C35
accent
#D85054
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #331234

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

Preview Lab → · Contrast checker → · Palette generator →

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