#35157B#35157B

#35157B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.156 H 288.3°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#35157B
RGBrgb(53, 21, 123)
HSLhsl(259, 71%, 28%)
HSVhsv(259, 83%, 48%)
CMYKcmyk(56.9%, 82.9%, 0%, 51.8%)
CIE-LABlab(18.90, 40.72, -51.55)
CIE-LCHlch(18.90, 65.70, 308.31°)
OKLaboklab(31.94% 0.049 -0.1484)
OKLCHoklch(31.94% 0.156 288.3)
XYZxyz(5.3105, 2.7230, 18.9808)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35157B #5B7B15
analogous
#15287B #35157B #68157B
triadic
#35157B #7B3515 #157B35
tetradic
#35157B #7B1528 #5B7B15 #157B68
square
#35157B #7B1528 #5B7B15 #157B68
split-complementary
#35157B #7B6815 #287B15
monochromatic
#0B041A #1E0C47 #35157B #4C1EAF #652FDB

Accessibility & contrast

On white

13.60
#35157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#35157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35157B
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35157B#FFFFFF#000000##FFFFFF
##35157B1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#173348
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #35157b;
/* rgb */ color: rgb(53, 21, 123);
/* oklch */ color: oklch(31.9% 0.156 288.3);
Tailwind
colors: {
  custom: {
    50: '#7557a2',
    500: '#35157b',
    950: '#000000',
  },
}
SCSS
$custom: #35157b;
$custom-light: #7557a2;
$custom-dark: #000000;
JSON
{
  "hex": "#35157b",
  "rgb": {
    "r": 53,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 258.824,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31941,
    "c": 0.15625,
    "h": 288.3
  },
  "luminance": 0.02723
}

Semantic roles & 50–950 ramp

primary
#35157B
secondary
#8CB03B
accent
#EE3AB5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #35157B

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

Preview Lab → · Contrast checker → · Palette generator →

#35157B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva