#351986#351986

#351986 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.166 H 284.9°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#351986
RGBrgb(53, 25, 134)
HSLhsl(255, 69%, 31%)
HSVhsv(255, 81%, 53%)
CMYKcmyk(60.4%, 81.3%, 0%, 47.5%)
CIE-LABlab(20.72, 42.09, -55.52)
CIE-LCHlch(20.72, 69.67, 307.16°)
OKLaboklab(33.56% 0.0427 -0.16)
OKLCHoklch(33.56% 0.166 284.9)
XYZxyz(6.1176, 3.1730, 22.8397)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351986 #6A8619
analogous
#193386 #351986 #6B1986
triadic
#351986 #863519 #198635
tetradic
#351986 #861933 #6A8619 #19866B
square
#351986 #861933 #6A8619 #19866B
split-complementary
#351986 #866B19 #338619
monochromatic
#0C061F #210F52 #351986 #4923BA #673EDB

Accessibility & contrast

On white

12.85
#351986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#351986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351986
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351986#FFFFFF#000000##FFFFFF
##3519861.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#043950
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #351986;
/* rgb */ color: rgb(53, 25, 134);
/* oklch */ color: oklch(33.6% 0.166 284.9);
Tailwind
colors: {
  custom: {
    50: '#775aaa',
    500: '#351986',
    950: '#000000',
  },
}
SCSS
$custom: #351986;
$custom-light: #775aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#351986",
  "rgb": {
    "r": 53,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 255.413,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33561,
    "c": 0.16557,
    "h": 284.9
  },
  "luminance": 0.03173
}

Semantic roles & 50–950 ramp

primary
#351986
secondary
#9BBA41
accent
#EB3CBE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351986

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

Preview Lab → · Contrast checker → · Palette generator →

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