#36178D#36178D

#36178D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.175 H 284.2°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#36178D
RGBrgb(54, 23, 141)
HSLhsl(256, 72%, 32%)
HSVhsv(256, 84%, 55%)
CMYKcmyk(61.7%, 83.7%, 0%, 44.7%)
CIE-LABlab(21.28, 45.17, -58.98)
CIE-LCHlch(21.28, 74.29, 307.45°)
OKLaboklab(34.2% 0.0431 -0.17)
OKLCHoklch(34.2% 0.175 284.2)
XYZxyz(6.6340, 3.3197, 25.4853)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36178D #6E8D17
analogous
#17338D #36178D #71178D
triadic
#36178D #8D3617 #178D36
tetradic
#36178D #8D1733 #6E8D17 #178D71
square
#36178D #8D1733 #6E8D17 #178D71
split-complementary
#36178D #8D7117 #338D17
monochromatic
#0E0624 #220E58 #36178D #4A20C2 #693FE0

Accessibility & contrast

On white

12.62
#36178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#36178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #36178D
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36178D#FFFFFF#000000##FFFFFF
##36178D1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #36178d;
/* rgb */ color: rgb(54, 23, 141);
/* oklch */ color: oklch(34.2% 0.175 284.2);
Tailwind
colors: {
  custom: {
    50: '#795ab0',
    500: '#36178d',
    950: '#000000',
  },
}
SCSS
$custom: #36178d;
$custom-light: #795ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#36178d",
  "rgb": {
    "r": 54,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 255.763,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.342,
    "c": 0.17538,
    "h": 284.2
  },
  "luminance": 0.0332
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #36178D

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

Preview Lab → · Contrast checker → · Palette generator →

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