#351C81#351C81

#351C81 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.157 H 285.6°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#351C81
RGBrgb(53, 28, 129)
HSLhsl(255, 64%, 31%)
HSVhsv(255, 78%, 51%)
CMYKcmyk(58.9%, 78.3%, 0%, 49.4%)
CIE-LABlab(20.72, 39.08, -52.37)
CIE-LCHlch(20.72, 65.34, 306.73°)
OKLaboklab(33.4% 0.0421 -0.1508)
OKLCHoklch(33.4% 0.157 285.6)
XYZxyz(5.8447, 3.1720, 21.0689)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351C81 #68811C
analogous
#1C3681 #351C81 #671C81
triadic
#351C81 #81351C #1C8135
tetradic
#351C81 #811C36 #68811C #1C8167
square
#351C81 #811C36 #68811C #1C8167
split-complementary
#351C81 #81671C #36811C
monochromatic
#0C061C #20114F #351C81 #4A27B3 #6642D6

Accessibility & contrast

On white

12.85
#351C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#351C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351C81
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351C81#FFFFFF#000000##FFFFFF
##351C811.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#0E394D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #351c81;
/* rgb */ color: rgb(53, 28, 129);
/* oklch */ color: oklch(33.4% 0.157 285.6);
Tailwind
colors: {
  custom: {
    50: '#765ba7',
    500: '#351c81',
    950: '#000000',
  },
}
SCSS
$custom: #351c81;
$custom-light: #765ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#351c81",
  "rgb": {
    "r": 53,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 254.851,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.334,
    "c": 0.15657,
    "h": 285.6
  },
  "luminance": 0.03172
}

Semantic roles & 50–950 ramp

primary
#351C81
secondary
#99B444
accent
#E740BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #351C81

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

Preview Lab → · Contrast checker → · Palette generator →

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