#351171#351171

#351171 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.148 H 292.0°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#351171
RGBrgb(53, 17, 113)
HSLhsl(263, 74%, 25%)
HSVhsv(263, 85%, 44%)
CMYKcmyk(53.1%, 85%, 0%, 55.7%)
CIE-LABlab(17.23, 39.63, -47.88)
CIE-LCHlch(17.23, 62.15, 309.62°)
OKLaboklab(30.46% 0.0554 -0.1376)
OKLCHoklch(30.46% 0.148 292)
XYZxyz(4.6484, 2.3499, 15.8282)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351171 #4D7111
analogous
#111D71 #351171 #651171
triadic
#351171 #713511 #117135
tetradic
#351171 #71111D #4D7111 #117165
square
#351171 #71111D #4D7111 #117165
split-complementary
#351171 #716511 #1D7111
monochromatic
#0C041B #1C093C #351171 #4E19A6 #6721DB

Accessibility & contrast

On white

14.29
#351171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#351171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351171
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351171#FFFFFF#000000##FFFFFF
##3511711.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#202E42
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #351171;
/* rgb */ color: rgb(53, 17, 113);
/* oklch */ color: oklch(30.5% 0.148 292.0);
Tailwind
colors: {
  custom: {
    50: '#74559b',
    500: '#351171',
    950: '#000000',
  },
}
SCSS
$custom: #351171;
$custom-light: #74559b;
$custom-dark: #000000;
JSON
{
  "hex": "#351171",
  "rgb": {
    "r": 53,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 262.5,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30463,
    "c": 0.14831,
    "h": 292
  },
  "luminance": 0.0235
}

Semantic roles & 50–950 ramp

primary
#351171
secondary
#7DA836
accent
#F137AB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #351171

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

Preview Lab → · Contrast checker → · Palette generator →

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