#331241#331241

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

Color values

HEX#331241
RGBrgb(51, 18, 65)
HSLhsl(282, 57%, 16%)
HSVhsv(282, 72%, 25%)
CMYKcmyk(21.5%, 72.3%, 0%, 74.5%)
CIE-LABlab(12.72, 25.59, -22.85)
CIE-LCHlch(12.72, 34.31, 318.24°)
OKLaboklab(25.87% 0.0627 -0.0642)
OKLCHoklch(25.87% 0.09 314.3)
XYZxyz(2.5355, 1.5182, 5.1595)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331241 #204112
analogous
#1C1241 #331241 #411238
triadic
#331241 #413312 #124133
tetradic
#331241 #411C12 #204112 #123841
square
#331241 #411C12 #204112 #123841
split-complementary
#331241 #384112 #12411C
monochromatic
#130718 #130718 #331241 #591F71 #7E2DA1

Accessibility & contrast

On white

16.11
#331241 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331241
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331241#FFFFFF#000000##FFFFFF
##3312411.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021F42
Deuteranopia (green-blind)
#102240
Tritanopia (blue-blind)
#321B27
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #331241;
/* rgb */ color: rgb(51, 18, 65);
/* oklch */ color: oklch(25.9% 0.090 314.3);
Tailwind
colors: {
  custom: {
    50: '#6d5276',
    500: '#331241',
    950: '#000000',
  },
}
SCSS
$custom: #331241;
$custom-light: #6d5276;
$custom-dark: #000000;
JSON
{
  "hex": "#331241",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 65
  },
  "hsl": {
    "h": 282.128,
    "s": 56.627,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25868,
    "c": 0.08972,
    "h": 314.3
  },
  "luminance": 0.01518
}

Semantic roles & 50–950 ramp

primary
#331241
secondary
#497A35
accent
#E04875
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #331241

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

Preview Lab → · Contrast checker → · Palette generator →

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