#351242#351242

#351242 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.3% C 0.092 H 315.6°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#351242
RGBrgb(53, 18, 66)
HSLhsl(284, 57%, 16%)
HSVhsv(284, 73%, 26%)
CMYKcmyk(19.7%, 72.7%, 0%, 74.1%)
CIE-LABlab(13.13, 26.41, -22.89)
CIE-LCHlch(13.13, 34.95, 319.08°)
OKLaboklab(26.25% 0.0657 -0.0642)
OKLCHoklch(26.25% 0.092 315.6)
XYZxyz(2.6677, 1.5829, 5.3182)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351242 #1F4212
analogous
#1D1242 #351242 #421237
triadic
#351242 #423512 #124235
tetradic
#351242 #421D12 #1F4212 #123742
square
#351242 #421D12 #1F4212 #123742
split-complementary
#351242 #374212 #12421D
monochromatic
#130718 #130718 #351242 #5C1F72 #822CA2

Accessibility & contrast

On white

15.95
#351242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#351242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351242
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351242#FFFFFF#000000##FFFFFF
##3512421.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022043
Deuteranopia (green-blind)
#122341
Tritanopia (blue-blind)
#341B28
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #351242;
/* rgb */ color: rgb(53, 18, 66);
/* oklch */ color: oklch(26.3% 0.092 315.6);
Tailwind
colors: {
  custom: {
    50: '#6e5377',
    500: '#351242',
    950: '#000000',
  },
}
SCSS
$custom: #351242;
$custom-light: #6e5377;
$custom-dark: #000000;
JSON
{
  "hex": "#351242",
  "rgb": {
    "r": 53,
    "g": 18,
    "b": 66
  },
  "hsl": {
    "h": 283.75,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.26251,
    "c": 0.09186,
    "h": 315.6
  },
  "luminance": 0.01583
}

Semantic roles & 50–950 ramp

primary
#351242
secondary
#487B35
accent
#E04771
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #351242

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

Preview Lab → · Contrast checker → · Palette generator →

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