#351784#351784

#351784 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.165 H 285.7°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#351784
RGBrgb(53, 23, 132)
HSLhsl(257, 70%, 30%)
HSVhsv(257, 83%, 52%)
CMYKcmyk(59.8%, 82.6%, 0%, 48.2%)
CIE-LABlab(20.18, 42.43, -55.15)
CIE-LCHlch(20.18, 69.58, 307.58°)
OKLaboklab(33.12% 0.0446 -0.1589)
OKLCHoklch(33.12% 0.165 285.7)
XYZxyz(5.9382, 3.0353, 22.0983)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351784 #668417
analogous
#172F84 #351784 #6C1784
triadic
#351784 #843517 #178435
tetradic
#351784 #84172F #668417 #17846C
square
#351784 #84172F #668417 #17846C
split-complementary
#351784 #846C17 #2F8417
monochromatic
#0B051C #200E50 #351784 #4A20B8 #6639DC

Accessibility & contrast

On white

13.07
#351784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#351784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351784
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351784#FFFFFF#000000##FFFFFF
##3517841.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#09384E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #351784;
/* rgb */ color: rgb(53, 23, 132);
/* oklch */ color: oklch(33.1% 0.165 285.7);
Tailwind
colors: {
  custom: {
    50: '#7759a9',
    500: '#351784',
    950: '#000000',
  },
}
SCSS
$custom: #351784;
$custom-light: #7759a9;
$custom-dark: #000000;
JSON
{
  "hex": "#351784",
  "rgb": {
    "r": 53,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 256.514,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33122,
    "c": 0.16501,
    "h": 285.7
  },
  "luminance": 0.03036
}

Semantic roles & 50–950 ramp

primary
#351784
secondary
#97B83F
accent
#ED3BBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351784

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

Preview Lab → · Contrast checker → · Palette generator →

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