#351794#351794

#351794 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.184 H 282.3°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#351794
RGBrgb(53, 23, 148)
HSLhsl(254, 73%, 34%)
HSVhsv(254, 84%, 58%)
CMYKcmyk(64.2%, 84.5%, 0%, 42%)
CIE-LABlab(21.97, 47.09, -62.19)
CIE-LCHlch(21.97, 78.01, 307.13°)
OKLaboklab(34.88% 0.039 -0.1794)
OKLCHoklch(34.88% 0.184 282.3)
XYZxyz(7.1182, 3.5073, 28.3131)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351794 #769417
analogous
#173794 #351794 #731794
triadic
#351794 #943517 #179435
tetradic
#351794 #941737 #769417 #179473
square
#351794 #941737 #769417 #179473
split-complementary
#351794 #947317 #379417
monochromatic
#0F072A #220F5F #351794 #481FC9 #6A44E2

Accessibility & contrast

On white

12.34
#351794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#351794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351794
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351794#FFFFFF#000000##FFFFFF
##3517941.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003897
Deuteranopia (green-blind)
#003092
Tritanopia (blue-blind)
#003E57
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #351794;
/* rgb */ color: rgb(53, 23, 148);
/* oklch */ color: oklch(34.9% 0.184 282.3);
Tailwind
colors: {
  custom: {
    50: '#7a5ab5',
    500: '#351794',
    950: '#000000',
  },
}
SCSS
$custom: #351794;
$custom-light: #7a5ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#351794",
  "rgb": {
    "r": 53,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 254.4,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34882,
    "c": 0.18358,
    "h": 282.3
  },
  "luminance": 0.03508
}

Semantic roles & 50–950 ramp

primary
#351794
secondary
#A4C344
accent
#F038C4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #351794

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

Preview Lab → · Contrast checker → · Palette generator →

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