#351E87#351E87

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

Color values

HEX#351E87
RGBrgb(53, 30, 135)
HSLhsl(253, 64%, 32%)
HSVhsv(253, 78%, 53%)
CMYKcmyk(60.7%, 77.8%, 0%, 47.1%)
CIE-LABlab(21.71, 39.87, -54.53)
CIE-LCHlch(21.71, 67.55, 306.18°)
OKLaboklab(34.28% 0.0389 -0.1571)
OKLCHoklch(34.28% 0.162 283.9)
XYZxyz(6.3043, 3.4343, 23.2477)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351E87 #70871E
analogous
#1E3B87 #351E87 #6A1E87
triadic
#351E87 #87351E #1E8735
tetradic
#351E87 #871E3B #70871E #1E876A
square
#351E87 #871E3B #70871E #1E876A
split-complementary
#351E87 #876A1E #3B871E
monochromatic
#0E0823 #211355 #351E87 #4929B9 #6849D7

Accessibility & contrast

On white

12.45
#351E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #351E87
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351E87#FFFFFF#000000##FFFFFF
##351E871.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#013C51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #351e87;
/* rgb */ color: rgb(53, 30, 135);
/* oklch */ color: oklch(34.3% 0.162 283.9);
Tailwind
colors: {
  custom: {
    50: '#775dab',
    500: '#351e87',
    950: '#000000',
  },
}
SCSS
$custom: #351e87;
$custom-light: #775dab;
$custom-dark: #000000;
JSON
{
  "hex": "#351e87",
  "rgb": {
    "r": 53,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 253.143,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34278,
    "c": 0.16188,
    "h": 283.9
  },
  "luminance": 0.03435
}

Semantic roles & 50–950 ramp

primary
#351E87
secondary
#A0B948
accent
#E741C2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351E87

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

Preview Lab → · Contrast checker → · Palette generator →

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