#351157#351157

#351157 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.9% C 0.118 H 302.7°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#351157
RGBrgb(53, 17, 87)
HSLhsl(271, 67%, 20%)
HSVhsv(271, 80%, 34%)
CMYKcmyk(39.1%, 80.5%, 0%, 65.9%)
CIE-LABlab(14.66, 32.42, -34.88)
CIE-LCHlch(14.66, 47.62, 312.90°)
OKLaboklab(27.89% 0.0638 -0.0994)
OKLCHoklch(27.89% 0.118 302.7)
XYZxyz(3.3885, 1.8459, 9.1928)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351157 #335711
analogous
#121157 #351157 #571156
triadic
#351157 #573511 #115735
tetradic
#351157 #571211 #335711 #115657
square
#351157 #571211 #335711 #115657
split-complementary
#351157 #565711 #115712
monochromatic
#10051A #160724 #351157 #541B8A #7325BD

Accessibility & contrast

On white

15.34
#351157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #351157
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351157#FFFFFF#000000##FFFFFF
##3511571.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002459
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#2E2333
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #351157;
/* rgb */ color: rgb(53, 17, 87);
/* oklch */ color: oklch(27.9% 0.118 302.7);
Tailwind
colors: {
  custom: {
    50: '#705387',
    500: '#351157',
    950: '#000000',
  },
}
SCSS
$custom: #351157;
$custom-light: #705387;
$custom-dark: #000000;
JSON
{
  "hex": "#351157",
  "rgb": {
    "r": 53,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 270.857,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27886,
    "c": 0.11813,
    "h": 302.7
  },
  "luminance": 0.01846
}

Semantic roles & 50–950 ramp

primary
#351157
secondary
#619034
accent
#EA3E91
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #351157

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

Preview Lab → · Contrast checker → · Palette generator →

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