#331434#331434

#331434 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.3% C 0.071 H 326.2°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#331434
RGBrgb(51, 20, 52)
HSLhsl(298, 44%, 14%)
HSVhsv(298, 62%, 20%)
CMYKcmyk(1.9%, 61.5%, 0%, 79.6%)
CIE-LABlab(12.30, 21.26, -14.25)
CIE-LCHlch(12.30, 25.60, 326.17°)
OKLaboklab(25.28% 0.0587 -0.0392)
OKLCHoklch(25.28% 0.071 326.2)
XYZxyz(2.2352, 1.4522, 3.4107)
Luminance0.0145 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331434 #153414
analogous
#231434 #331434 #341425
triadic
#331434 #343314 #143433
tetradic
#331434 #342314 #153414 #142534
square
#331434 #342314 #153414 #142534
split-complementary
#331434 #253414 #143423
monochromatic
#160916 #160916 #331434 #5E2560 #8A368C

Accessibility & contrast

On white

16.27
#331434 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#331434 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331434
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331434#FFFFFF#000000##FFFFFF
##3314341.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101E35
Deuteranopia (green-blind)
#1A2233
Tritanopia (blue-blind)
#341821
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #331434;
/* rgb */ color: rgb(51, 20, 52);
/* oklch */ color: oklch(25.3% 0.071 326.2);
Tailwind
colors: {
  custom: {
    50: '#6c536b',
    500: '#331434',
    950: '#000000',
  },
}
SCSS
$custom: #331434;
$custom-light: #6c536b;
$custom-dark: #000000;
JSON
{
  "hex": "#331434",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 52
  },
  "hsl": {
    "h": 298.125,
    "s": 44.444,
    "l": 14.118
  },
  "oklch": {
    "l": 0.25283,
    "c": 0.07056,
    "h": 326.2
  },
  "luminance": 0.01452
}

Semantic roles & 50–950 ramp

primary
#331434
secondary
#3A6B38
accent
#D45458
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #331434

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

Preview Lab → · Contrast checker → · Palette generator →

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