#351788#351788

#351788 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.6% C 0.170 H 284.8°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#351788
RGBrgb(53, 23, 136)
HSLhsl(256, 71%, 31%)
HSVhsv(256, 83%, 53%)
CMYKcmyk(61%, 83.1%, 0%, 46.7%)
CIE-LABlab(20.62, 43.60, -56.94)
CIE-LCHlch(20.62, 71.72, 307.44°)
OKLaboklab(33.56% 0.0432 -0.1641)
OKLCHoklch(33.56% 0.17 284.8)
XYZxyz(6.2172, 3.1469, 23.5676)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351788 #6A8817
analogous
#173188 #351788 #6D1788
triadic
#351788 #883517 #178835
tetradic
#351788 #881731 #6A8817 #17886D
square
#351788 #881731 #6A8817 #17886D
split-complementary
#351788 #886D17 #318817
monochromatic
#0C051F #210E54 #351788 #4920BC #673BDE

Accessibility & contrast

On white

12.89
#351788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#351788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351788
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351788#FFFFFF#000000##FFFFFF
##3517881.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #351788;
/* rgb */ color: rgb(53, 23, 136);
/* oklch */ color: oklch(33.6% 0.170 284.8);
Tailwind
colors: {
  custom: {
    50: '#7859ac',
    500: '#351788',
    950: '#000000',
  },
}
SCSS
$custom: #351788;
$custom-light: #7859ac;
$custom-dark: #000000;
JSON
{
  "hex": "#351788",
  "rgb": {
    "r": 53,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 255.929,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33556,
    "c": 0.1697,
    "h": 284.8
  },
  "luminance": 0.03147
}

Semantic roles & 50–950 ramp

primary
#351788
secondary
#9BBC3F
accent
#EE3ABE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351788

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

Preview Lab → · Contrast checker → · Palette generator →

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