#36178F#36178F

#36178F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.178 H 283.8°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#36178F
RGBrgb(54, 23, 143)
HSLhsl(256, 72%, 33%)
HSVhsv(256, 84%, 56%)
CMYKcmyk(62.2%, 83.9%, 0%, 43.9%)
CIE-LABlab(21.50, 45.75, -59.85)
CIE-LCHlch(21.50, 75.33, 307.39°)
OKLaboklab(34.42% 0.0424 -0.1726)
OKLCHoklch(34.42% 0.178 283.8)
XYZxyz(6.7841, 3.3798, 26.2761)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36178F #708F17
analogous
#17348F #36178F #72178F
triadic
#36178F #8F3617 #178F36
tetradic
#36178F #8F1734 #708F17 #178F72
square
#36178F #8F1734 #708F17 #178F72
split-complementary
#36178F #8F7217 #348F17
monochromatic
#0E0626 #220F5A #36178F #4A1FC4 #6940E0

Accessibility & contrast

On white

12.53
#36178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#36178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #36178F
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36178F#FFFFFF#000000##FFFFFF
##36178F1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #36178f;
/* rgb */ color: rgb(54, 23, 143);
/* oklch */ color: oklch(34.4% 0.178 283.8);
Tailwind
colors: {
  custom: {
    50: '#7a5ab1',
    500: '#36178f',
    950: '#000000',
  },
}
SCSS
$custom: #36178f;
$custom-light: #7a5ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#36178f",
  "rgb": {
    "r": 54,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 255.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3442,
    "c": 0.1777,
    "h": 283.8
  },
  "luminance": 0.0338
}

Semantic roles & 50–950 ramp

primary
#36178F
secondary
#A0C141
accent
#EF39C0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #36178F

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

Preview Lab → · Contrast checker → · Palette generator →

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