#36168A#36168A

#36168A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.173 H 285.0°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#36168A
RGBrgb(54, 22, 138)
HSLhsl(257, 73%, 31%)
HSVhsv(257, 84%, 54%)
CMYKcmyk(60.9%, 84.1%, 0%, 45.9%)
CIE-LABlab(20.80, 44.74, -57.90)
CIE-LCHlch(20.80, 73.17, 307.69°)
OKLaboklab(33.77% 0.0447 -0.1668)
OKLCHoklch(33.77% 0.173 285)
XYZxyz(6.3943, 3.1927, 24.3191)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36168A #6A8A16
analogous
#16308A #36168A #70168A
triadic
#36168A #8A3616 #168A36
tetradic
#36168A #8A1630 #6A8A16 #168A70
square
#36168A #8A1630 #6A8A16 #168A70
split-complementary
#36168A #8A7016 #308A16
monochromatic
#0D0520 #210E55 #36168A #4B1EBF #683BE0

Accessibility & contrast

On white

12.82
#36168A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#36168A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #36168A
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36168A#FFFFFF#000000##FFFFFF
##36168A1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#013A51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #36168a;
/* rgb */ color: rgb(54, 22, 138);
/* oklch */ color: oklch(33.8% 0.173 285.0);
Tailwind
colors: {
  custom: {
    50: '#7959ad',
    500: '#36168a',
    950: '#000000',
  },
}
SCSS
$custom: #36168a;
$custom-light: #7959ad;
$custom-dark: #000000;
JSON
{
  "hex": "#36168a",
  "rgb": {
    "r": 54,
    "g": 22,
    "b": 138
  },
  "hsl": {
    "h": 256.552,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33769,
    "c": 0.17274,
    "h": 285
  },
  "luminance": 0.03193
}

Semantic roles & 50–950 ramp

primary
#36168A
secondary
#9BBE3E
accent
#EF39BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #36168A

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

Preview Lab → · Contrast checker → · Palette generator →

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