#351D87#351D87

#351D87 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.163 H 284.1°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#351D87
RGBrgb(53, 29, 135)
HSLhsl(254, 65%, 32%)
HSVhsv(254, 79%, 53%)
CMYKcmyk(60.7%, 78.5%, 0%, 47.1%)
CIE-LABlab(21.52, 40.40, -54.83)
CIE-LCHlch(21.52, 68.10, 306.38°)
OKLaboklab(34.15% 0.0396 -0.158)
OKLCHoklch(34.15% 0.163 284.1)
XYZxyz(6.2794, 3.3845, 23.2394)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351D87 #6F871D
analogous
#1D3A87 #351D87 #6A1D87
triadic
#351D87 #87351D #1D8735
tetradic
#351D87 #871D3A #6F871D #1D876A
square
#351D87 #871D3A #6F871D #1D876A
split-complementary
#351D87 #876A1D #3A871D
monochromatic
#0D0722 #211255 #351D87 #4928B9 #6847D7

Accessibility & contrast

On white

12.52
#351D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#351D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351D87
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351D87#FFFFFF#000000##FFFFFF
##351D871.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #351d87;
/* rgb */ color: rgb(53, 29, 135);
/* oklch */ color: oklch(34.2% 0.163 284.1);
Tailwind
colors: {
  custom: {
    50: '#775cab',
    500: '#351d87',
    950: '#000000',
  },
}
SCSS
$custom: #351d87;
$custom-light: #775cab;
$custom-dark: #000000;
JSON
{
  "hex": "#351d87",
  "rgb": {
    "r": 53,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 253.585,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3415,
    "c": 0.1629,
    "h": 284.1
  },
  "luminance": 0.03385
}

Semantic roles & 50–950 ramp

primary
#351D87
secondary
#9FB946
accent
#E840C2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351D87

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

Preview Lab → · Contrast checker → · Palette generator →

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