#351A87#351A87

#351A87 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.166 H 284.6°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#351A87
RGBrgb(53, 26, 135)
HSLhsl(255, 68%, 32%)
HSVhsv(255, 81%, 53%)
CMYKcmyk(60.7%, 80.7%, 0%, 47.1%)
CIE-LABlab(21.00, 41.90, -55.69)
CIE-LCHlch(21.00, 69.70, 306.96°)
OKLaboklab(33.78% 0.0417 -0.1605)
OKLCHoklch(33.78% 0.166 284.6)
XYZxyz(6.2094, 3.2445, 23.2160)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351A87 #6C871A
analogous
#1A3687 #351A87 #6C1A87
triadic
#351A87 #87351A #1A8735
tetradic
#351A87 #871A36 #6C871A #1A876C
square
#351A87 #871A36 #6C871A #1A876C
split-complementary
#351A87 #876C1A #36871A
monochromatic
#0D0620 #211054 #351A87 #4924BA #6741DA

Accessibility & contrast

On white

12.73
#351A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#351A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351A87
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351A87#FFFFFF#000000##FFFFFF
##351A871.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#023A50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #351a87;
/* rgb */ color: rgb(53, 26, 135);
/* oklch */ color: oklch(33.8% 0.166 284.6);
Tailwind
colors: {
  custom: {
    50: '#775bab',
    500: '#351a87',
    950: '#000000',
  },
}
SCSS
$custom: #351a87;
$custom-light: #775bab;
$custom-dark: #000000;
JSON
{
  "hex": "#351a87",
  "rgb": {
    "r": 53,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 254.862,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33784,
    "c": 0.16582,
    "h": 284.6
  },
  "luminance": 0.03245
}

Semantic roles & 50–950 ramp

primary
#351A87
secondary
#9DBA42
accent
#EB3DC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351A87

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

Preview Lab → · Contrast checker → · Palette generator →

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