#36218D#36218D

#36218D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.166 H 282.8°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#36218D
RGBrgb(54, 33, 141)
HSLhsl(252, 62%, 34%)
HSVhsv(252, 77%, 55%)
CMYKcmyk(61.7%, 76.6%, 0%, 44.7%)
CIE-LABlab(22.98, 40.27, -56.18)
CIE-LCHlch(22.98, 69.12, 305.64°)
OKLaboklab(35.38% 0.0367 -0.1619)
OKLCHoklch(35.38% 0.166 282.8)
XYZxyz(6.8714, 3.7946, 25.5645)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36218D #788D21
analogous
#21428D #36218D #6C218D
triadic
#36218D #8D3621 #218D36
tetradic
#36218D #8D2142 #788D21 #218D6C
square
#36218D #8D2142 #788D21 #218D6C
split-complementary
#36218D #8D6C21 #428D21
monochromatic
#100A2A #23155B #36218D #492DBF #6C52D6

Accessibility & contrast

On white

11.94
#36218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#36218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #36218D
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36218D#FFFFFF#000000##FFFFFF
##36218D1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #36218d;
/* rgb */ color: rgb(54, 33, 141);
/* oklch */ color: oklch(35.4% 0.166 282.8);
Tailwind
colors: {
  custom: {
    50: '#785faf',
    500: '#36218d',
    950: '#000000',
  },
}
SCSS
$custom: #36218d;
$custom-light: #785faf;
$custom-dark: #000000;
JSON
{
  "hex": "#36218d",
  "rgb": {
    "r": 54,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 251.667,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35384,
    "c": 0.16605,
    "h": 282.8
  },
  "luminance": 0.03795
}

Semantic roles & 50–950 ramp

primary
#36218D
secondary
#A5BA50
accent
#E543C6
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #36218D

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

Preview Lab → · Contrast checker → · Palette generator →

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