#351156#351156

#351156 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.8% C 0.117 H 303.2°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#351156
RGBrgb(53, 17, 86)
HSLhsl(271, 67%, 20%)
HSVhsv(271, 80%, 34%)
CMYKcmyk(38.4%, 80.2%, 0%, 66.3%)
CIE-LABlab(14.57, 32.15, -34.35)
CIE-LCHlch(14.57, 47.05, 313.10°)
OKLaboklab(27.79% 0.064 -0.0979)
OKLCHoklch(27.79% 0.117 303.2)
XYZxyz(3.3480, 1.8297, 8.9791)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351156 #325611
analogous
#121156 #351156 #561154
triadic
#351156 #563511 #115635
tetradic
#351156 #561211 #325611 #115456
square
#351156 #561211 #325611 #115456
split-complementary
#351156 #545611 #115612
monochromatic
#10051A #160723 #351156 #541B89 #7425BC

Accessibility & contrast

On white

15.37
#351156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#351156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351156
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351156#FFFFFF#000000##FFFFFF
##3511561.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#2E2232
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #351156;
/* rgb */ color: rgb(53, 17, 86);
/* oklch */ color: oklch(27.8% 0.117 303.2);
Tailwind
colors: {
  custom: {
    50: '#705386',
    500: '#351156',
    950: '#000000',
  },
}
SCSS
$custom: #351156;
$custom-light: #705386;
$custom-dark: #000000;
JSON
{
  "hex": "#351156",
  "rgb": {
    "r": 53,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 271.304,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27794,
    "c": 0.11696,
    "h": 303.2
  },
  "luminance": 0.0183
}

Semantic roles & 50–950 ramp

primary
#351156
secondary
#5F8F34
accent
#EA3E90
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #351156

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

Preview Lab → · Contrast checker → · Palette generator →

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