#351F96#351F96

#351F96 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.179 H 280.9°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#351F96
RGBrgb(53, 31, 150)
HSLhsl(251, 66%, 35%)
HSVhsv(251, 79%, 59%)
CMYKcmyk(64.7%, 79.3%, 0%, 41.2%)
CIE-LABlab(23.47, 43.98, -60.95)
CIE-LCHlch(23.47, 75.16, 305.81°)
OKLaboklab(35.98% 0.034 -0.1759)
OKLCHoklch(35.98% 0.179 280.9)
XYZxyz(7.4615, 3.9383, 29.2152)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F96 #80961F
analogous
#1F4596 #351F96 #701F96
triadic
#351F96 #96351F #1F9635
tetradic
#351F96 #961F45 #80961F #1F9670
square
#351F96 #961F45 #80961F #1F9670
split-complementary
#351F96 #96701F #45961F
monochromatic
#110A31 #231563 #351F96 #4729C9 #6D54DC

Accessibility & contrast

On white

11.75
#351F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#351F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F96
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F96#FFFFFF#000000##FFFFFF
##351F961.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #351f96;
/* rgb */ color: rgb(53, 31, 150);
/* oklch */ color: oklch(36.0% 0.179 280.9);
Tailwind
colors: {
  custom: {
    50: '#7a5eb6',
    500: '#351f96',
    950: '#000000',
  },
}
SCSS
$custom: #351f96;
$custom-light: #7a5eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#351f96",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 251.092,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35984,
    "c": 0.17916,
    "h": 280.9
  },
  "luminance": 0.03939
}

Semantic roles & 50–950 ramp

primary
#351F96
secondary
#ABBF52
accent
#E93FC9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #351F96

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

Preview Lab → · Contrast checker → · Palette generator →

#351F96 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva