#36168D#36168D

#36168D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.176 H 284.3°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#36168D
RGBrgb(54, 22, 141)
HSLhsl(256, 73%, 32%)
HSVhsv(256, 84%, 55%)
CMYKcmyk(61.7%, 84.4%, 0%, 44.7%)
CIE-LABlab(21.13, 45.60, -59.22)
CIE-LCHlch(21.13, 74.74, 307.60°)
OKLaboklab(34.1% 0.0436 -0.1707)
OKLCHoklch(34.1% 0.176 284.3)
XYZxyz(6.6145, 3.2807, 25.4788)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36168D #6D8D16
analogous
#16328D #36168D #71168D
triadic
#36168D #8D3616 #168D36
tetradic
#36168D #8D1632 #6D8D16 #168D71
square
#36168D #8D1632 #6D8D16 #168D71
split-complementary
#36168D #8D7116 #328D16
monochromatic
#0D0523 #220E58 #36168D #4A1EC2 #693DE1

Accessibility & contrast

On white

12.68
#36168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #36168D
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36168D#FFFFFF#000000##FFFFFF
##36168D1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.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: #36168d;
/* rgb */ color: rgb(54, 22, 141);
/* oklch */ color: oklch(34.1% 0.176 284.3);
Tailwind
colors: {
  custom: {
    50: '#7959b0',
    500: '#36168d',
    950: '#000000',
  },
}
SCSS
$custom: #36168d;
$custom-light: #7959b0;
$custom-dark: #000000;
JSON
{
  "hex": "#36168d",
  "rgb": {
    "r": 54,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 256.134,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34099,
    "c": 0.17619,
    "h": 284.3
  },
  "luminance": 0.03281
}

Semantic roles & 50–950 ramp

primary
#36168D
secondary
#9DC13E
accent
#F038BE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #36168D

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

Preview Lab → · Contrast checker → · Palette generator →

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