#36218C#36218C

#36218C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.165 H 282.9°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#36218C
RGBrgb(54, 33, 140)
HSLhsl(252, 62%, 34%)
HSVhsv(252, 76%, 55%)
CMYKcmyk(61.4%, 76.4%, 0%, 45.1%)
CIE-LABlab(22.88, 39.96, -55.72)
CIE-LCHlch(22.88, 68.57, 305.65°)
OKLaboklab(35.28% 0.0369 -0.1606)
OKLCHoklch(35.28% 0.165 282.9)
XYZxyz(6.7973, 3.7650, 25.1744)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36218C #778C21
analogous
#21428C #36218C #6C218C
triadic
#36218C #8C3621 #218C36
tetradic
#36218C #8C2142 #778C21 #218C6C
square
#36218C #8C2142 #778C21 #218C6C
split-complementary
#36218C #8C6C21 #428C21
monochromatic
#100A29 #23155A #36218C #492DBE #6B51D6

Accessibility & contrast

On white

11.98
#36218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#36218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #36218C
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36218C#FFFFFF#000000##FFFFFF
##36218C1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #36218c;
/* rgb */ color: rgb(54, 33, 140);
/* oklch */ color: oklch(35.3% 0.165 282.9);
Tailwind
colors: {
  custom: {
    50: '#785faf',
    500: '#36218c',
    950: '#000000',
  },
}
SCSS
$custom: #36218c;
$custom-light: #785faf;
$custom-dark: #000000;
JSON
{
  "hex": "#36218c",
  "rgb": {
    "r": 54,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 251.776,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35281,
    "c": 0.16481,
    "h": 282.9
  },
  "luminance": 0.03765
}

Semantic roles & 50–950 ramp

primary
#36218C
secondary
#A5B94F
accent
#E543C5
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #36218C

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

Preview Lab → · Contrast checker → · Palette generator →

#36218C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva