#331239#331239

#331239 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.3% C 0.080 H 321.2°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#331239
RGBrgb(51, 18, 57)
HSLhsl(291, 52%, 15%)
HSVhsv(291, 68%, 22%)
CMYKcmyk(10.5%, 68.4%, 0%, 77.6%)
CIE-LABlab(12.17, 23.62, -18.05)
CIE-LCHlch(12.17, 29.73, 322.61°)
OKLaboklab(25.29% 0.0625 -0.0502)
OKLCHoklch(25.29% 0.08 321.2)
XYZxyz(2.3200, 1.4319, 4.0243)
Luminance0.0143 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331239 #183912
analogous
#201239 #331239 #39122C
triadic
#331239 #393312 #123933
tetradic
#331239 #392012 #183912 #122C39
square
#331239 #392012 #183912 #122C39
split-complementary
#331239 #2C3912 #123920
monochromatic
#150717 #150717 #331239 #5D2168 #862F96

Accessibility & contrast

On white

16.32
#331239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331239
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331239#FFFFFF#000000##FFFFFF
##3312391.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1D3A
Deuteranopia (green-blind)
#162138
Tritanopia (blue-blind)
#341823
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #331239;
/* rgb */ color: rgb(51, 18, 57);
/* oklch */ color: oklch(25.3% 0.080 321.2);
Tailwind
colors: {
  custom: {
    50: '#6c526f',
    500: '#331239',
    950: '#000000',
  },
}
SCSS
$custom: #331239;
$custom-light: #6c526f;
$custom-dark: #000000;
JSON
{
  "hex": "#331239",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 57
  },
  "hsl": {
    "h": 290.769,
    "s": 52,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25287,
    "c": 0.08019,
    "h": 321.2
  },
  "luminance": 0.01432
}

Semantic roles & 50–950 ramp

primary
#331239
secondary
#3E7235
accent
#DB4C62
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #331239

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

Preview Lab → · Contrast checker → · Palette generator →

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