#36157E#36157E

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

Color values

HEX#36157E
RGBrgb(54, 21, 126)
HSLhsl(259, 71%, 29%)
HSVhsv(259, 83%, 49%)
CMYKcmyk(57.1%, 83.3%, 0%, 50.6%)
CIE-LABlab(19.34, 41.72, -52.74)
CIE-LCHlch(19.34, 67.25, 308.34°)
OKLaboklab(32.37% 0.0496 -0.1518)
OKLCHoklch(32.37% 0.16 288.1)
XYZxyz(5.5543, 2.8267, 19.9876)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36157E #5D7E15
analogous
#15297E #36157E #6B157E
triadic
#36157E #7E3615 #157E36
tetradic
#36157E #7E1529 #5D7E15 #157E6B
square
#36157E #7E1529 #5D7E15 #157E6B
split-complementary
#36157E #7E6B15 #297E15
monochromatic
#0B041A #200C4A #36157E #4C1EB2 #6731DD

Accessibility & contrast

On white

13.42
#36157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#36157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #36157E
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36157E#FFFFFF#000000##FFFFFF
##36157E1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #36157e;
/* rgb */ color: rgb(54, 21, 126);
/* oklch */ color: oklch(32.4% 0.160 288.1);
Tailwind
colors: {
  custom: {
    50: '#7758a4',
    500: '#36157e',
    950: '#000000',
  },
}
SCSS
$custom: #36157e;
$custom-light: #7758a4;
$custom-dark: #000000;
JSON
{
  "hex": "#36157e",
  "rgb": {
    "r": 54,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 258.857,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32367,
    "c": 0.1597,
    "h": 288.1
  },
  "luminance": 0.02827
}

Semantic roles & 50–950 ramp

primary
#36157E
secondary
#8EB33C
accent
#EE3AB5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #36157E

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

Preview Lab → · Contrast checker → · Palette generator →

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