#331041#331041

#331041 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.6% C 0.093 H 314.7°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#331041
RGBrgb(51, 16, 65)
HSLhsl(283, 60%, 16%)
HSVhsv(283, 75%, 25%)
CMYKcmyk(21.5%, 75.4%, 0%, 74.5%)
CIE-LABlab(12.33, 26.69, -23.49)
CIE-LCHlch(12.33, 35.55, 318.65°)
OKLaboklab(25.58% 0.0655 -0.066)
OKLCHoklch(25.58% 0.093 314.7)
XYZxyz(2.5045, 1.4561, 5.1491)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331041 #1E4110
analogous
#1A1041 #331041 #411036
triadic
#331041 #413310 #104133
tetradic
#331041 #411A10 #1E4110 #103641
square
#331041 #411A10 #1E4110 #103641
split-complementary
#331041 #364110 #10411A
monochromatic
#130619 #130619 #331041 #5A1C72 #8028A3

Accessibility & contrast

On white

16.26
#331041 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331041
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331041#FFFFFF#000000##FFFFFF
##3310411.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E42
Deuteranopia (green-blind)
#0E2140
Tritanopia (blue-blind)
#321A26
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #331041;
/* rgb */ color: rgb(51, 16, 65);
/* oklch */ color: oklch(25.6% 0.093 314.7);
Tailwind
colors: {
  custom: {
    50: '#6d5176',
    500: '#331041',
    950: '#000000',
  },
}
SCSS
$custom: #331041;
$custom-light: #6d5176;
$custom-dark: #000000;
JSON
{
  "hex": "#331041",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 65
  },
  "hsl": {
    "h": 282.857,
    "s": 60.494,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25582,
    "c": 0.093,
    "h": 314.7
  },
  "luminance": 0.01456
}

Semantic roles & 50–950 ramp

primary
#331041
secondary
#477B32
accent
#E44472
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #331041

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

Preview Lab → · Contrast checker → · Palette generator →

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