#331640#331640

#331640 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.4% C 0.081 H 314.1°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#331640
RGBrgb(51, 22, 64)
HSLhsl(281, 49%, 17%)
HSVhsv(281, 66%, 25%)
CMYKcmyk(20.3%, 65.6%, 0%, 74.9%)
CIE-LABlab(13.52, 22.98, -20.88)
CIE-LCHlch(13.52, 31.05, 317.75°)
OKLaboklab(26.42% 0.0567 -0.0585)
OKLCHoklch(26.42% 0.081 314.1)
XYZxyz(2.5774, 1.6479, 5.0318)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331640 #234016
analogous
#1E1640 #331640 #401638
triadic
#331640 #403316 #164033
tetradic
#331640 #401E16 #234016 #163840
square
#331640 #401E16 #234016 #163840
split-complementary
#331640 #384016 #16401E
monochromatic
#120817 #120817 #331640 #57266E #7C359B

Accessibility & contrast

On white

15.79
#331640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#331640 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331640
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331640#FFFFFF#000000##FFFFFF
##3316401.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2141
Deuteranopia (green-blind)
#15233F
Tritanopia (blue-blind)
#321D28
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331640;
/* rgb */ color: rgb(51, 22, 64);
/* oklch */ color: oklch(26.4% 0.081 314.1);
Tailwind
colors: {
  custom: {
    50: '#6c5575',
    500: '#331640',
    950: '#000000',
  },
}
SCSS
$custom: #331640;
$custom-light: #6c5575;
$custom-dark: #000000;
JSON
{
  "hex": "#331640",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 64
  },
  "hsl": {
    "h": 281.429,
    "s": 48.837,
    "l": 16.863
  },
  "oklch": {
    "l": 0.26424,
    "c": 0.08141,
    "h": 314.1
  },
  "luminance": 0.01648
}

Semantic roles & 50–950 ramp

primary
#331640
secondary
#4D773B
accent
#D84F7A
background
#F6F5F7
surface
#EBE8ED
border
#C6C4C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #331640

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

Preview Lab → · Contrast checker → · Palette generator →

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