#351238#351238

#351238 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.5% C 0.080 H 324.4°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#351238
RGBrgb(53, 18, 56)
HSLhsl(295, 51%, 15%)
HSVhsv(295, 68%, 22%)
CMYKcmyk(5.4%, 67.9%, 0%, 78%)
CIE-LABlab(12.45, 24.03, -16.87)
CIE-LCHlch(12.45, 29.36, 324.92°)
OKLaboklab(25.54% 0.0653 -0.0467)
OKLCHoklch(25.54% 0.08 324.4)
XYZxyz(2.3983, 1.4752, 3.8990)
Luminance0.0147 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351238 #153812
analogous
#221238 #351238 #381228
triadic
#351238 #383512 #123835
tetradic
#351238 #382212 #153812 #122838
square
#351238 #382212 #153812 #122838
split-complementary
#351238 #283812 #123822
monochromatic
#160717 #160717 #351238 #612166 #8D3095

Accessibility & contrast

On white

16.22
#351238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#351238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351238
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351238#FFFFFF#000000##FFFFFF
##3512381.0016.221.3016.22
#FFFFFF16.221.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1E39
Deuteranopia (green-blind)
#182237
Tritanopia (blue-blind)
#361722
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #351238;
/* rgb */ color: rgb(53, 18, 56);
/* oklch */ color: oklch(25.5% 0.080 324.4);
Tailwind
colors: {
  custom: {
    50: '#6e526f',
    500: '#351238',
    950: '#000000',
  },
}
SCSS
$custom: #351238;
$custom-light: #6e526f;
$custom-dark: #000000;
JSON
{
  "hex": "#351238",
  "rgb": {
    "r": 53,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 295.263,
    "s": 51.351,
    "l": 14.51
  },
  "oklch": {
    "l": 0.25542,
    "c": 0.08032,
    "h": 324.4
  },
  "luminance": 0.01475
}

Semantic roles & 50–950 ramp

primary
#351238
secondary
#3A7135
accent
#DB4D58
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #351238

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

Preview Lab → · Contrast checker → · Palette generator →

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