#351796#351796

#351796 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.186 H 281.9°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#351796
RGBrgb(53, 23, 150)
HSLhsl(254, 73%, 34%)
HSVhsv(254, 85%, 59%)
CMYKcmyk(64.7%, 84.7%, 0%, 41.2%)
CIE-LABlab(22.20, 47.67, -63.05)
CIE-LCHlch(22.20, 79.04, 307.09°)
OKLaboklab(35.11% 0.0383 -0.1819)
OKLCHoklch(35.11% 0.186 281.9)
XYZxyz(7.2779, 3.5711, 29.1540)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351796 #789617
analogous
#173996 #351796 #751796
triadic
#351796 #963517 #179635
tetradic
#351796 #961739 #789617 #179675
square
#351796 #961739 #789617 #179675
split-complementary
#351796 #967517 #399617
monochromatic
#10072C #220F61 #351796 #481FCB #6A45E2

Accessibility & contrast

On white

12.25
#351796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#351796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351796
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351796#FFFFFF#000000##FFFFFF
##3517961.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003999
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#003F59
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #351796;
/* rgb */ color: rgb(53, 23, 150);
/* oklch */ color: oklch(35.1% 0.186 281.9);
Tailwind
colors: {
  custom: {
    50: '#7b5ab6',
    500: '#351796',
    950: '#000000',
  },
}
SCSS
$custom: #351796;
$custom-light: #7b5ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#351796",
  "rgb": {
    "r": 53,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 254.173,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35107,
    "c": 0.18586,
    "h": 281.9
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#351796
secondary
#A6C345
accent
#F038C5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #351796

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

Preview Lab → · Contrast checker → · Palette generator →

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