#331235#331235

#331235 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.0% C 0.076 H 325.3°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#331235
RGBrgb(51, 18, 53)
HSLhsl(297, 49%, 14%)
HSVhsv(297, 66%, 21%)
CMYKcmyk(3.8%, 66%, 0%, 79.2%)
CIE-LABlab(11.91, 22.69, -15.58)
CIE-LCHlch(11.91, 27.52, 325.53°)
OKLaboklab(25.02% 0.0621 -0.043)
OKLCHoklch(25.02% 0.076 325.3)
XYZxyz(2.2241, 1.3936, 3.5193)
Luminance0.0139 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331235 #143512
analogous
#221235 #331235 #351226
triadic
#331235 #353312 #123533
tetradic
#331235 #352212 #143512 #122635
square
#331235 #352212 #143512 #122635
split-complementary
#331235 #263512 #123522
monochromatic
#160817 #160817 #331235 #5F2263 #8B3190

Accessibility & contrast

On white

16.42
#331235 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#331235 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331235
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331235#FFFFFF#000000##FFFFFF
##3312351.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1D36
Deuteranopia (green-blind)
#182134
Tritanopia (blue-blind)
#341621
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #331235;
/* rgb */ color: rgb(51, 18, 53);
/* oklch */ color: oklch(25.0% 0.076 325.3);
Tailwind
colors: {
  custom: {
    50: '#6c526c',
    500: '#331235',
    950: '#000000',
  },
}
SCSS
$custom: #331235;
$custom-light: #6c526c;
$custom-dark: #000000;
JSON
{
  "hex": "#331235",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 53
  },
  "hsl": {
    "h": 296.571,
    "s": 49.296,
    "l": 13.922
  },
  "oklch": {
    "l": 0.25019,
    "c": 0.07558,
    "h": 325.3
  },
  "luminance": 0.01393
}

Semantic roles & 50–950 ramp

primary
#331235
secondary
#396D35
accent
#D94F57
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #331235

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

Preview Lab → · Contrast checker → · Palette generator →

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