#36178E#36178E

#36178E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.177 H 284.0°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#36178E
RGBrgb(54, 23, 142)
HSLhsl(256, 72%, 32%)
HSVhsv(256, 84%, 56%)
CMYKcmyk(62%, 83.8%, 0%, 44.3%)
CIE-LABlab(21.39, 45.46, -59.42)
CIE-LCHlch(21.39, 74.81, 307.42°)
OKLaboklab(34.31% 0.0427 -0.1713)
OKLCHoklch(34.31% 0.177 284)
XYZxyz(6.7087, 3.3496, 25.8790)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36178E #6F8E17
analogous
#17348E #36178E #71178E
triadic
#36178E #8E3617 #178E36
tetradic
#36178E #8E1734 #6F8E17 #178E71
square
#36178E #8E1734 #6F8E17 #178E71
split-complementary
#36178E #8E7117 #348E17
monochromatic
#0E0625 #220E59 #36178E #4A20C3 #693FE0

Accessibility & contrast

On white

12.57
#36178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#36178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #36178E
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36178E#FFFFFF#000000##FFFFFF
##36178E1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #36178e;
/* rgb */ color: rgb(54, 23, 142);
/* oklch */ color: oklch(34.3% 0.177 284.0);
Tailwind
colors: {
  custom: {
    50: '#795ab0',
    500: '#36178e',
    950: '#000000',
  },
}
SCSS
$custom: #36178e;
$custom-light: #795ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#36178e",
  "rgb": {
    "r": 54,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 255.63,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3431,
    "c": 0.17654,
    "h": 284
  },
  "luminance": 0.0335
}

Semantic roles & 50–950 ramp

primary
#36178E
secondary
#9FC040
accent
#EF39BF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #36178E

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

Preview Lab → · Contrast checker → · Palette generator →

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