#351878#351878

#351878 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.150 H 288.6°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#351878
RGBrgb(53, 24, 120)
HSLhsl(258, 67%, 28%)
HSVhsv(258, 80%, 47%)
CMYKcmyk(55.8%, 80%, 0%, 52.9%)
CIE-LABlab(19.08, 38.41, -49.33)
CIE-LCHlch(19.08, 62.52, 307.90°)
OKLaboklab(31.97% 0.0478 -0.1419)
OKLCHoklch(31.97% 0.15 288.6)
XYZxyz(5.1840, 2.7660, 18.0264)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351878 #5B7818
analogous
#182B78 #351878 #651878
triadic
#351878 #783518 #187835
tetradic
#351878 #78182B #5B7818 #187865
square
#351878 #78182B #5B7818 #187865
split-complementary
#351878 #786518 #2B7818
monochromatic
#0B051A #1E0E45 #351878 #4C22AB #6534D6

Accessibility & contrast

On white

13.52
#351878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #351878
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351878#FFFFFF#000000##FFFFFF
##3518781.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #351878;
/* rgb */ color: rgb(53, 24, 120);
/* oklch */ color: oklch(32.0% 0.150 288.6);
Tailwind
colors: {
  custom: {
    50: '#7559a0',
    500: '#351878',
    950: '#000000',
  },
}
SCSS
$custom: #351878;
$custom-light: #7559a0;
$custom-dark: #000000;
JSON
{
  "hex": "#351878",
  "rgb": {
    "r": 53,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 258.125,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31974,
    "c": 0.14974,
    "h": 288.6
  },
  "luminance": 0.02766
}

Semantic roles & 50–950 ramp

primary
#351878
secondary
#8CAD3F
accent
#EA3EB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #351878

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

Preview Lab → · Contrast checker → · Palette generator →

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