#35157E#35157E

#35157E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.160 H 287.5°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#35157E
RGBrgb(53, 21, 126)
HSLhsl(258, 71%, 29%)
HSVhsv(258, 83%, 49%)
CMYKcmyk(57.9%, 83.3%, 0%, 50.6%)
CIE-LABlab(19.22, 41.59, -52.93)
CIE-LCHlch(19.22, 67.32, 308.16°)
OKLaboklab(32.26% 0.048 -0.1524)
OKLCHoklch(32.26% 0.16 287.5)
XYZxyz(5.5011, 2.7993, 19.9851)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35157E #5E7E15
analogous
#15297E #35157E #6A157E
triadic
#35157E #7E3515 #157E35
tetradic
#35157E #7E1529 #5E7E15 #157E6A
square
#35157E #7E1529 #5E7E15 #157E6A
split-complementary
#35157E #7E6A15 #297E15
monochromatic
#0B041A #1F0C4A #35157E #4B1EB2 #6531DD

Accessibility & contrast

On white

13.46
#35157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#35157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35157E
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35157E#FFFFFF#000000##FFFFFF
##35157E1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#14354A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #35157e;
/* rgb */ color: rgb(53, 21, 126);
/* oklch */ color: oklch(32.3% 0.160 287.5);
Tailwind
colors: {
  custom: {
    50: '#7658a4',
    500: '#35157e',
    950: '#000000',
  },
}
SCSS
$custom: #35157e;
$custom-light: #7658a4;
$custom-dark: #000000;
JSON
{
  "hex": "#35157e",
  "rgb": {
    "r": 53,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 258.286,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32261,
    "c": 0.15977,
    "h": 287.5
  },
  "luminance": 0.028
}

Semantic roles & 50–950 ramp

primary
#35157E
secondary
#8FB33C
accent
#EE3AB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #35157E

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

Preview Lab → · Contrast checker → · Palette generator →

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