#351978#351978

#351978 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.149 H 288.4°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#351978
RGBrgb(53, 25, 120)
HSLhsl(258, 66%, 28%)
HSVhsv(258, 79%, 47%)
CMYKcmyk(55.8%, 79.2%, 0%, 52.9%)
CIE-LABlab(19.26, 37.90, -49.04)
CIE-LCHlch(19.26, 61.98, 307.70°)
OKLaboklab(32.1% 0.047 -0.1411)
OKLCHoklch(32.1% 0.149 288.4)
XYZxyz(5.2050, 2.8080, 18.0334)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351978 #5C7819
analogous
#192C78 #351978 #641978
triadic
#351978 #783519 #197835
tetradic
#351978 #78192C #5C7819 #197864
square
#351978 #78192C #5C7819 #197864
split-complementary
#351978 #786419 #2C7819
monochromatic
#0B0519 #1F0E45 #351978 #4B24AB #6536D5

Accessibility & contrast

On white

13.45
#351978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#351978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351978
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351978#FFFFFF#000000##FFFFFF
##3519781.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#1A3448
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #351978;
/* rgb */ color: rgb(53, 25, 120);
/* oklch */ color: oklch(32.1% 0.149 288.4);
Tailwind
colors: {
  custom: {
    50: '#7559a0',
    500: '#351978',
    950: '#000000',
  },
}
SCSS
$custom: #351978;
$custom-light: #7559a0;
$custom-dark: #000000;
JSON
{
  "hex": "#351978",
  "rgb": {
    "r": 53,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 257.684,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32097,
    "c": 0.14869,
    "h": 288.4
  },
  "luminance": 0.02808
}

Semantic roles & 50–950 ramp

primary
#351978
secondary
#8DAD40
accent
#E83FB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #351978

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

Preview Lab → · Contrast checker → · Palette generator →

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