#331143#331143

#331143 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.9% C 0.094 H 313.0°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#331143
RGBrgb(51, 17, 67)
HSLhsl(281, 60%, 16%)
HSVhsv(281, 75%, 26%)
CMYKcmyk(23.9%, 74.6%, 0%, 73.7%)
CIE-LABlab(12.67, 26.66, -24.34)
CIE-LCHlch(12.67, 36.10, 317.60°)
OKLaboklab(25.88% 0.064 -0.0685)
OKLCHoklch(25.88% 0.094 313)
XYZxyz(2.5786, 1.5100, 5.4647)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331143 #214311
analogous
#1A1143 #331143 #43113A
triadic
#331143 #433311 #114333
tetradic
#331143 #431A11 #214311 #113A43
square
#331143 #431A11 #214311 #113A43
split-complementary
#331143 #3A4311 #11431A
monochromatic
#130618 #130618 #331143 #581D74 #7D2AA5

Accessibility & contrast

On white

16.13
#331143 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#331143 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331143
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331143#FFFFFF#000000##FFFFFF
##3311431.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F44
Deuteranopia (green-blind)
#0D2242
Tritanopia (blue-blind)
#311B28
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #331143;
/* rgb */ color: rgb(51, 17, 67);
/* oklch */ color: oklch(25.9% 0.094 313.0);
Tailwind
colors: {
  custom: {
    50: '#6d5277',
    500: '#331143',
    950: '#000000',
  },
}
SCSS
$custom: #331143;
$custom-light: #6d5277;
$custom-dark: #000000;
JSON
{
  "hex": "#331143",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 67
  },
  "hsl": {
    "h": 280.8,
    "s": 59.524,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25879,
    "c": 0.09376,
    "h": 313
  },
  "luminance": 0.0151
}

Semantic roles & 50–950 ramp

primary
#331143
secondary
#4B7D33
accent
#E34578
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #331143

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

Preview Lab → · Contrast checker → · Palette generator →

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