#351781#351781

#351781 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.161 H 286.4°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#351781
RGBrgb(53, 23, 129)
HSLhsl(257, 70%, 30%)
HSVhsv(257, 82%, 51%)
CMYKcmyk(58.9%, 82.2%, 0%, 49.4%)
CIE-LABlab(19.86, 41.55, -53.79)
CIE-LCHlch(19.86, 67.97, 307.69°)
OKLaboklab(32.8% 0.0456 -0.1549)
OKLCHoklch(32.8% 0.161 286.4)
XYZxyz(5.7359, 2.9543, 21.0326)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351781 #638117
analogous
#172E81 #351781 #6A1781
triadic
#351781 #813517 #178135
tetradic
#351781 #81172E #638117 #17816A
square
#351781 #81172E #638117 #17816A
split-complementary
#351781 #816A17 #2E8117
monochromatic
#0B051A #200E4D #351781 #4A20B5 #6637DB

Accessibility & contrast

On white

13.20
#351781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#351781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351781
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351781#FFFFFF#000000##FFFFFF
##3517811.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#0F374C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #351781;
/* rgb */ color: rgb(53, 23, 129);
/* oklch */ color: oklch(32.8% 0.161 286.4);
Tailwind
colors: {
  custom: {
    50: '#7659a7',
    500: '#351781',
    950: '#000000',
  },
}
SCSS
$custom: #351781;
$custom-light: #7659a7;
$custom-dark: #000000;
JSON
{
  "hex": "#351781",
  "rgb": {
    "r": 53,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 256.981,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32801,
    "c": 0.16148,
    "h": 286.4
  },
  "luminance": 0.02955
}

Semantic roles & 50–950 ramp

primary
#351781
secondary
#94B53E
accent
#ED3BBA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351781

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

Preview Lab → · Contrast checker → · Palette generator →

#351781 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva