#351786#351786

#351786 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.167 H 285.2°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#351786
RGBrgb(53, 23, 134)
HSLhsl(256, 71%, 31%)
HSVhsv(256, 83%, 53%)
CMYKcmyk(60.4%, 82.8%, 0%, 47.5%)
CIE-LABlab(20.40, 43.02, -56.05)
CIE-LCHlch(20.40, 70.65, 307.51°)
OKLaboklab(33.34% 0.0439 -0.1615)
OKLCHoklch(33.34% 0.167 285.2)
XYZxyz(6.0764, 3.0905, 22.8260)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351786 #688617
analogous
#173086 #351786 #6C1786
triadic
#351786 #863517 #178635
tetradic
#351786 #861730 #688617 #17866C
square
#351786 #861730 #688617 #17866C
split-complementary
#351786 #866C17 #308617
monochromatic
#0C051E #200E52 #351786 #4A20BA #663ADD

Accessibility & contrast

On white

12.98
#351786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#351786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351786
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351786#FFFFFF#000000##FFFFFF
##3517861.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#05394F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #351786;
/* rgb */ color: rgb(53, 23, 134);
/* oklch */ color: oklch(33.3% 0.167 285.2);
Tailwind
colors: {
  custom: {
    50: '#7759aa',
    500: '#351786',
    950: '#000000',
  },
}
SCSS
$custom: #351786;
$custom-light: #7759aa;
$custom-dark: #000000;
JSON
{
  "hex": "#351786",
  "rgb": {
    "r": 53,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 256.216,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33338,
    "c": 0.16736,
    "h": 285.2
  },
  "luminance": 0.03091
}

Semantic roles & 50–950 ramp

primary
#351786
secondary
#99BA3F
accent
#ED3ABD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351786

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

Preview Lab → · Contrast checker → · Palette generator →

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