#351989#351989

#351989 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.169 H 284.3°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#351989
RGBrgb(53, 25, 137)
HSLhsl(255, 69%, 32%)
HSVhsv(255, 82%, 54%)
CMYKcmyk(61.3%, 81.8%, 0%, 46.3%)
CIE-LABlab(21.05, 42.98, -56.86)
CIE-LCHlch(21.05, 71.28, 307.08°)
OKLaboklab(33.88% 0.0417 -0.1639)
OKLCHoklch(33.88% 0.169 284.3)
XYZxyz(6.3298, 3.2579, 23.9573)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351989 #6D8919
analogous
#193589 #351989 #6D1989
triadic
#351989 #893519 #198935
tetradic
#351989 #891935 #6D8919 #19896D
square
#351989 #891935 #6D8919 #19896D
split-complementary
#351989 #896D19 #358919
monochromatic
#0D0621 #211055 #351989 #4922BD #6740DC

Accessibility & contrast

On white

12.71
#351989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#351989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351989
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351989#FFFFFF#000000##FFFFFF
##3519891.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #351989;
/* rgb */ color: rgb(53, 25, 137);
/* oklch */ color: oklch(33.9% 0.169 284.3);
Tailwind
colors: {
  custom: {
    50: '#785aad',
    500: '#351989',
    950: '#000000',
  },
}
SCSS
$custom: #351989;
$custom-light: #785aad;
$custom-dark: #000000;
JSON
{
  "hex": "#351989",
  "rgb": {
    "r": 53,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 255,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33883,
    "c": 0.16912,
    "h": 284.3
  },
  "luminance": 0.03258
}

Semantic roles & 50–950 ramp

primary
#351989
secondary
#9EBC41
accent
#EC3CC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351989

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

Preview Lab → · Contrast checker → · Palette generator →

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