#351981#351981

#351981 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.160 H 286.1°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#351981
RGBrgb(53, 25, 129)
HSLhsl(256, 68%, 30%)
HSVhsv(256, 81%, 51%)
CMYKcmyk(58.9%, 80.6%, 0%, 49.4%)
CIE-LABlab(20.19, 40.60, -53.24)
CIE-LCHlch(20.19, 66.95, 307.32°)
OKLaboklab(33.03% 0.0443 -0.1533)
OKLCHoklch(33.03% 0.16 286.1)
XYZxyz(5.7771, 3.0368, 21.0464)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351981 #658119
analogous
#193181 #351981 #691981
triadic
#351981 #813519 #198135
tetradic
#351981 #811931 #658119 #198169
square
#351981 #811931 #658119 #198169
split-complementary
#351981 #816919 #318119
monochromatic
#0B051A #200F4E #351981 #4A23B4 #663BD9

Accessibility & contrast

On white

13.06
#351981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#351981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351981
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351981#FFFFFF#000000##FFFFFF
##3519811.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#0F374D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #351981;
/* rgb */ color: rgb(53, 25, 129);
/* oklch */ color: oklch(33.0% 0.160 286.1);
Tailwind
colors: {
  custom: {
    50: '#765aa7',
    500: '#351981',
    950: '#000000',
  },
}
SCSS
$custom: #351981;
$custom-light: #765aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#351981",
  "rgb": {
    "r": 53,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 256.154,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3303,
    "c": 0.15959,
    "h": 286.1
  },
  "luminance": 0.03037
}

Semantic roles & 50–950 ramp

primary
#351981
secondary
#96B541
accent
#EA3DBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #351981

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

Preview Lab → · Contrast checker → · Palette generator →

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