#35158F#35158F

#35158F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.179 H 283.5°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#35158F
RGBrgb(53, 21, 143)
HSLhsl(256, 74%, 32%)
HSVhsv(256, 85%, 56%)
CMYKcmyk(62.9%, 85.3%, 0%, 43.9%)
CIE-LABlab(21.12, 46.49, -60.50)
CIE-LCHlch(21.12, 76.30, 307.54°)
OKLaboklab(34.13% 0.0418 -0.1744)
OKLCHoklch(34.13% 0.179 283.5)
XYZxyz(6.6928, 3.2759, 26.2609)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35158F #6F8F15
analogous
#15328F #35158F #72158F
triadic
#35158F #8F3515 #158F35
tetradic
#35158F #8F1532 #6F8F15 #158F72
square
#35158F #8F1532 #6F8F15 #158F72
split-complementary
#35158F #8F7215 #328F15
monochromatic
#0D0524 #210D5A #35158F #491DC4 #683CE2

Accessibility & contrast

On white

12.69
#35158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#35158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35158F
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35158F#FFFFFF#000000##FFFFFF
##35158F1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #35158f;
/* rgb */ color: rgb(53, 21, 143);
/* oklch */ color: oklch(34.1% 0.179 283.5);
Tailwind
colors: {
  custom: {
    50: '#7959b1',
    500: '#35158f',
    950: '#000000',
  },
}
SCSS
$custom: #35158f;
$custom-light: #7959b1;
$custom-dark: #000000;
JSON
{
  "hex": "#35158f",
  "rgb": {
    "r": 53,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 255.738,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34128,
    "c": 0.17937,
    "h": 283.5
  },
  "luminance": 0.03276
}

Semantic roles & 50–950 ramp

primary
#35158F
secondary
#9FC23E
accent
#F137C0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #35158F

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

Preview Lab → · Contrast checker → · Palette generator →

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