#35158D#35158D

#35158D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.177 H 283.9°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#35158D
RGBrgb(53, 21, 141)
HSLhsl(256, 74%, 32%)
HSVhsv(256, 85%, 55%)
CMYKcmyk(62.4%, 85.1%, 0%, 44.7%)
CIE-LABlab(20.89, 45.91, -59.63)
CIE-LCHlch(20.89, 75.26, 307.59°)
OKLaboklab(33.9% 0.0425 -0.1719)
OKLCHoklch(33.9% 0.177 283.9)
XYZxyz(6.5426, 3.2159, 25.4701)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35158D #6D8D15
analogous
#15318D #35158D #71158D
triadic
#35158D #8D3515 #158D35
tetradic
#35158D #8D1531 #6D8D15 #158D71
square
#35158D #8D1531 #6D8D15 #158D71
split-complementary
#35158D #8D7115 #318D15
monochromatic
#0D0522 #210D58 #35158D #491DC2 #673BE2

Accessibility & contrast

On white

12.78
#35158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#35158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35158D
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35158D#FFFFFF#000000##FFFFFF
##35158D1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #35158d;
/* rgb */ color: rgb(53, 21, 141);
/* oklch */ color: oklch(33.9% 0.177 283.9);
Tailwind
colors: {
  custom: {
    50: '#7959b0',
    500: '#35158d',
    950: '#000000',
  },
}
SCSS
$custom: #35158d;
$custom-light: #7959b0;
$custom-dark: #000000;
JSON
{
  "hex": "#35158d",
  "rgb": {
    "r": 53,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 256,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33904,
    "c": 0.17709,
    "h": 283.9
  },
  "luminance": 0.03216
}

Semantic roles & 50–950 ramp

primary
#35158D
secondary
#9EC13D
accent
#F137BF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #35158D

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

Preview Lab → · Contrast checker → · Palette generator →

#35158D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva