#352172#352172

#352172 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.6% C 0.131 H 288.2°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#352172
RGBrgb(53, 33, 114)
HSLhsl(255, 55%, 29%)
HSVhsv(255, 71%, 45%)
CMYKcmyk(53.5%, 71.1%, 0%, 55.3%)
CIE-LABlab(20.28, 31.57, -43.52)
CIE-LCHlch(20.28, 53.76, 305.96°)
OKLaboklab(32.65% 0.0411 -0.1249)
OKLCHoklch(32.65% 0.131 288.2)
XYZxyz(5.0484, 3.0593, 16.2408)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#352172 #5E7221
analogous
#213672 #352172 #5E2172
triadic
#352172 #723521 #217235
tetradic
#352172 #722136 #5E7221 #21725E
square
#352172 #722136 #5E7221 #21725E
split-complementary
#352172 #725E21 #367221
monochromatic
#0B0718 #1F1343 #352172 #4B2FA1 #6544C9

Accessibility & contrast

On white

13.03
#352172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#352172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #352172
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##352172#FFFFFF#000000##FFFFFF
##3521721.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#1F3546
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #352172;
/* rgb */ color: rgb(53, 33, 114);
/* oklch */ color: oklch(32.6% 0.131 288.2);
Tailwind
colors: {
  custom: {
    50: '#735e9b',
    500: '#352172',
    950: '#000000',
  },
}
SCSS
$custom: #352172;
$custom-light: #735e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#352172",
  "rgb": {
    "r": 53,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 254.815,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32646,
    "c": 0.13147,
    "h": 288.2
  },
  "luminance": 0.0306
}

Semantic roles & 50–950 ramp

primary
#352172
secondary
#8FA549
accent
#DE49BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #352172

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

Preview Lab → · Contrast checker → · Palette generator →

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