#351778#351778

#351778 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.151 H 288.8°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#351778
RGBrgb(53, 23, 120)
HSLhsl(259, 68%, 28%)
HSVhsv(259, 81%, 47%)
CMYKcmyk(55.8%, 80.8%, 0%, 52.9%)
CIE-LABlab(18.91, 38.90, -49.62)
CIE-LCHlch(18.91, 63.05, 308.10°)
OKLaboklab(31.85% 0.0486 -0.1427)
OKLCHoklch(31.85% 0.151 288.8)
XYZxyz(5.1638, 2.7255, 18.0196)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351778 #5A7817
analogous
#172978 #351778 #651778
triadic
#351778 #783517 #177835
tetradic
#351778 #781729 #5A7817 #177865
square
#351778 #781729 #5A7817 #177865
split-complementary
#351778 #786517 #297817
monochromatic
#0B051A #1E0D45 #351778 #4C21AB #6532D8

Accessibility & contrast

On white

13.59
#351778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#351778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351778
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351778#FFFFFF#000000##FFFFFF
##3517781.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#1A3347
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #351778;
/* rgb */ color: rgb(53, 23, 120);
/* oklch */ color: oklch(31.9% 0.151 288.8);
Tailwind
colors: {
  custom: {
    50: '#7558a0',
    500: '#351778',
    950: '#000000',
  },
}
SCSS
$custom: #351778;
$custom-light: #7558a0;
$custom-dark: #000000;
JSON
{
  "hex": "#351778",
  "rgb": {
    "r": 53,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 258.557,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31854,
    "c": 0.15077,
    "h": 288.8
  },
  "luminance": 0.02726
}

Semantic roles & 50–950 ramp

primary
#351778
secondary
#8BAD3E
accent
#EB3DB5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #351778

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

Preview Lab → · Contrast checker → · Palette generator →

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