#331044#331044

#331044 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.8% C 0.097 H 312.5°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#331044
RGBrgb(51, 16, 68)
HSLhsl(280, 62%, 16%)
HSVhsv(280, 76%, 27%)
CMYKcmyk(25%, 76.5%, 0%, 73.3%)
CIE-LABlab(12.56, 27.45, -25.23)
CIE-LCHlch(12.56, 37.28, 317.41°)
OKLaboklab(25.82% 0.0652 -0.0711)
OKLCHoklch(25.82% 0.097 312.5)
XYZxyz(2.5937, 1.4918, 5.6190)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331044 #214410
analogous
#191044 #331044 #44103B
triadic
#331044 #443310 #104433
tetradic
#331044 #441910 #214410 #103B44
square
#331044 #441910 #214410 #103B44
split-complementary
#331044 #3B4410 #104419
monochromatic
#130619 #130619 #331044 #581C76 #7D27A7

Accessibility & contrast

On white

16.17
#331044 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331044
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331044#FFFFFF#000000##FFFFFF
##3310441.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331044;
/* rgb */ color: rgb(51, 16, 68);
/* oklch */ color: oklch(25.8% 0.097 312.5);
Tailwind
colors: {
  custom: {
    50: '#6d5178',
    500: '#331044',
    950: '#000000',
  },
}
SCSS
$custom: #331044;
$custom-light: #6d5178;
$custom-dark: #000000;
JSON
{
  "hex": "#331044",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 68
  },
  "hsl": {
    "h": 280.385,
    "s": 61.905,
    "l": 16.471
  },
  "oklch": {
    "l": 0.2582,
    "c": 0.09652,
    "h": 312.5
  },
  "luminance": 0.01492
}

Semantic roles & 50–950 ramp

primary
#331044
secondary
#4B7E32
accent
#E54378
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #331044

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

Preview Lab → · Contrast checker → · Palette generator →

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