#35157D#35157D

#35157D is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.159 H 287.7°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#35157D
RGBrgb(53, 21, 125)
HSLhsl(258, 71%, 29%)
HSVhsv(258, 83%, 49%)
CMYKcmyk(57.6%, 83.2%, 0%, 51%)
CIE-LABlab(19.11, 41.30, -52.48)
CIE-LCHlch(19.11, 66.78, 308.20°)
OKLaboklab(32.15% 0.0483 -0.151)
OKLCHoklch(32.15% 0.159 287.7)
XYZxyz(5.4369, 2.7736, 19.6469)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35157D #5D7D15
analogous
#15297D #35157D #69157D
triadic
#35157D #7D3515 #157D35
tetradic
#35157D #7D1529 #5D7D15 #157D69
square
#35157D #7D1529 #5D7D15 #157D69
split-complementary
#35157D #7D6915 #297D15
monochromatic
#0B041A #1F0C49 #35157D #4B1EB1 #6530DC

Accessibility & contrast

On white

13.51
#35157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#35157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35157D
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35157D#FFFFFF#000000##FFFFFF
##35157D1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#15344A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #35157d;
/* rgb */ color: rgb(53, 21, 125);
/* oklch */ color: oklch(32.2% 0.159 287.7);
Tailwind
colors: {
  custom: {
    50: '#7658a4',
    500: '#35157d',
    950: '#000000',
  },
}
SCSS
$custom: #35157d;
$custom-light: #7658a4;
$custom-dark: #000000;
JSON
{
  "hex": "#35157d",
  "rgb": {
    "r": 53,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 258.462,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32154,
    "c": 0.1586,
    "h": 287.7
  },
  "luminance": 0.02774
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #35157D

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

Preview Lab → · Contrast checker → · Palette generator →

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