#351C87#351C87

#351C87 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.164 H 284.2°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#351C87
RGBrgb(53, 28, 135)
HSLhsl(254, 66%, 32%)
HSVhsv(254, 79%, 53%)
CMYKcmyk(60.7%, 79.3%, 0%, 47.1%)
CIE-LABlab(21.34, 40.91, -55.12)
CIE-LCHlch(21.34, 68.64, 306.58°)
OKLaboklab(34.02% 0.0403 -0.1589)
OKLCHoklch(34.02% 0.164 284.2)
XYZxyz(6.2553, 3.3363, 23.2313)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351C87 #6E871C
analogous
#1C3887 #351C87 #6B1C87
triadic
#351C87 #87351C #1C8735
tetradic
#351C87 #871C38 #6E871C #1C876B
square
#351C87 #871C38 #6E871C #1C876B
split-complementary
#351C87 #876B1C #38871C
monochromatic
#0D0722 #211154 #351C87 #4927BA #6745D8

Accessibility & contrast

On white

12.59
#351C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#351C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351C87
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351C87#FFFFFF#000000##FFFFFF
##351C871.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#023B51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #351c87;
/* rgb */ color: rgb(53, 28, 135);
/* oklch */ color: oklch(34.0% 0.164 284.2);
Tailwind
colors: {
  custom: {
    50: '#775cab',
    500: '#351c87',
    950: '#000000',
  },
}
SCSS
$custom: #351c87;
$custom-light: #775cab;
$custom-dark: #000000;
JSON
{
  "hex": "#351c87",
  "rgb": {
    "r": 53,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 254.019,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34024,
    "c": 0.1639,
    "h": 284.2
  },
  "luminance": 0.03337
}

Semantic roles & 50–950 ramp

primary
#351C87
secondary
#9FBA45
accent
#E93FC1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351C87

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

Preview Lab → · Contrast checker → · Palette generator →

#351C87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva