#351F86#351F86

#351F86 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.160 H 283.9°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#351F86
RGBrgb(53, 31, 134)
HSLhsl(253, 62%, 32%)
HSVhsv(253, 77%, 53%)
CMYKcmyk(60.4%, 76.9%, 0%, 47.5%)
CIE-LABlab(21.79, 39.03, -53.76)
CIE-LCHlch(21.79, 66.43, 305.98°)
OKLaboklab(34.31% 0.0384 -0.1549)
OKLCHoklch(34.31% 0.16 283.9)
XYZxyz(6.2599, 3.4577, 22.8872)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F86 #70861F
analogous
#1F3C86 #351F86 #691F86
triadic
#351F86 #86351F #1F8635
tetradic
#351F86 #861F3C #70861F #1F8669
square
#351F86 #861F3C #70861F #1F8669
split-complementary
#351F86 #86691F #3C861F
monochromatic
#0E0823 #211454 #351F86 #492AB8 #684AD5

Accessibility & contrast

On white

12.41
#351F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#351F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F86
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F86#FFFFFF#000000##FFFFFF
##351F861.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#033C51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #351f86;
/* rgb */ color: rgb(53, 31, 134);
/* oklch */ color: oklch(34.3% 0.160 283.9);
Tailwind
colors: {
  custom: {
    50: '#775daa',
    500: '#351f86',
    950: '#000000',
  },
}
SCSS
$custom: #351f86;
$custom-light: #775daa;
$custom-dark: #000000;
JSON
{
  "hex": "#351f86",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 252.816,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34307,
    "c": 0.1596,
    "h": 283.9
  },
  "luminance": 0.03458
}

Semantic roles & 50–950 ramp

primary
#351F86
secondary
#A0B849
accent
#E542C3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351F86

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

Preview Lab → · Contrast checker → · Palette generator →

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