#331043#331043

#331043 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.7% C 0.095 H 313.2°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#331043
RGBrgb(51, 16, 67)
HSLhsl(281, 61%, 16%)
HSVhsv(281, 76%, 26%)
CMYKcmyk(23.9%, 76.1%, 0%, 73.7%)
CIE-LABlab(12.48, 27.19, -24.65)
CIE-LCHlch(12.48, 36.70, 317.81°)
OKLaboklab(25.74% 0.0653 -0.0695)
OKLCHoklch(25.74% 0.095 313.2)
XYZxyz(2.5635, 1.4797, 5.4597)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331043 #204310
analogous
#1A1043 #331043 #43103A
triadic
#331043 #433310 #104333
tetradic
#331043 #431A10 #204310 #103A43
square
#331043 #431A10 #204310 #103A43
split-complementary
#331043 #3A4310 #10431A
monochromatic
#130619 #130619 #331043 #591C74 #7E28A6

Accessibility & contrast

On white

16.20
#331043 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331043
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331043#FFFFFF#000000##FFFFFF
##3310431.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F45
Deuteranopia (green-blind)
#0C2142
Tritanopia (blue-blind)
#311A28
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #331043;
/* rgb */ color: rgb(51, 16, 67);
/* oklch */ color: oklch(25.7% 0.095 313.2);
Tailwind
colors: {
  custom: {
    50: '#6d5177',
    500: '#331043',
    950: '#000000',
  },
}
SCSS
$custom: #331043;
$custom-light: #6d5177;
$custom-dark: #000000;
JSON
{
  "hex": "#331043",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 67
  },
  "hsl": {
    "h": 281.176,
    "s": 61.446,
    "l": 16.275
  },
  "oklch": {
    "l": 0.2574,
    "c": 0.09534,
    "h": 313.2
  },
  "luminance": 0.0148
}

Semantic roles & 50–950 ramp

primary
#331043
secondary
#497D32
accent
#E54376
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #331043

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

Preview Lab → · Contrast checker → · Palette generator →

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