#36218B#36218B

#36218B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.164 H 283.1°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#36218B
RGBrgb(54, 33, 139)
HSLhsl(252, 62%, 34%)
HSVhsv(252, 76%, 55%)
CMYKcmyk(61.2%, 76.3%, 0%, 45.5%)
CIE-LABlab(22.78, 39.65, -55.26)
CIE-LCHlch(22.78, 68.01, 305.66°)
OKLaboklab(35.18% 0.0372 -0.1593)
OKLCHoklch(35.18% 0.164 283.1)
XYZxyz(6.7239, 3.7356, 24.7878)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36218B #768B21
analogous
#21418B #36218B #6B218B
triadic
#36218B #8B3621 #218B36
tetradic
#36218B #8B2141 #768B21 #218B6B
square
#36218B #8B2141 #768B21 #218B6B
split-complementary
#36218B #8B6B21 #418B21
monochromatic
#100A28 #23155A #36218B #492DBC #6B51D6

Accessibility & contrast

On white

12.02
#36218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #36218B
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36218B#FFFFFF#000000##FFFFFF
##36218B1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #36218b;
/* rgb */ color: rgb(54, 33, 139);
/* oklch */ color: oklch(35.2% 0.164 283.1);
Tailwind
colors: {
  custom: {
    50: '#785fae',
    500: '#36218b',
    950: '#000000',
  },
}
SCSS
$custom: #36218b;
$custom-light: #785fae;
$custom-dark: #000000;
JSON
{
  "hex": "#36218b",
  "rgb": {
    "r": 54,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 251.887,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35179,
    "c": 0.16356,
    "h": 283.1
  },
  "luminance": 0.03736
}

Semantic roles & 50–950 ramp

primary
#36218B
secondary
#A4B94F
accent
#E543C5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #36218B

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

Preview Lab → · Contrast checker → · Palette generator →

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