#351987#351987

#351987 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.167 H 284.7°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#351987
RGBrgb(53, 25, 135)
HSLhsl(255, 69%, 31%)
HSVhsv(255, 81%, 53%)
CMYKcmyk(60.7%, 81.5%, 0%, 47.1%)
CIE-LABlab(20.83, 42.38, -55.97)
CIE-LCHlch(20.83, 70.21, 307.14°)
OKLaboklab(33.67% 0.0423 -0.1613)
OKLCHoklch(33.67% 0.167 284.7)
XYZxyz(6.1877, 3.2010, 23.2088)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351987 #6B8719
analogous
#193487 #351987 #6C1987
triadic
#351987 #873519 #198735
tetradic
#351987 #871934 #6B8719 #19876C
square
#351987 #871934 #6B8719 #19876C
split-complementary
#351987 #876C19 #348719
monochromatic
#0C0620 #210F53 #351987 #4923BB #673FDB

Accessibility & contrast

On white

12.80
#351987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#351987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351987
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351987#FFFFFF#000000##FFFFFF
##3519871.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.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: #351987;
/* rgb */ color: rgb(53, 25, 135);
/* oklch */ color: oklch(33.7% 0.167 284.7);
Tailwind
colors: {
  custom: {
    50: '#775aab',
    500: '#351987',
    950: '#000000',
  },
}
SCSS
$custom: #351987;
$custom-light: #775aab;
$custom-dark: #000000;
JSON
{
  "hex": "#351987",
  "rgb": {
    "r": 53,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 255.273,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33668,
    "c": 0.16675,
    "h": 284.7
  },
  "luminance": 0.03201
}

Semantic roles & 50–950 ramp

primary
#351987
secondary
#9CBA41
accent
#EC3CBF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351987

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

Preview Lab → · Contrast checker → · Palette generator →

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