#36227E#36227E

#36227E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.146 H 285.7°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#36227E
RGBrgb(54, 34, 126)
HSLhsl(253, 58%, 31%)
HSVhsv(253, 73%, 49%)
CMYKcmyk(57.1%, 73%, 0%, 50.6%)
CIE-LABlab(21.71, 34.98, -48.85)
CIE-LCHlch(21.71, 60.08, 305.61°)
OKLaboklab(34.03% 0.0394 -0.1405)
OKLCHoklch(34.03% 0.146 285.7)
XYZxyz(5.8581, 3.4344, 20.0888)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36227E #6A7E22
analogous
#223C7E #36227E #64227E
triadic
#36227E #7E3622 #227E36
tetradic
#36227E #7E223C #6A7E22 #227E64
square
#36227E #7E223C #6A7E22 #227E64
split-complementary
#36227E #7E6422 #3C7E22
monochromatic
#0D081E #21154E #36227E #4B2FAE #684CCF

Accessibility & contrast

On white

12.45
#36227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#36227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #36227E
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36227E#FFFFFF#000000##FFFFFF
##36227E1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#163A4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #36227e;
/* rgb */ color: rgb(54, 34, 126);
/* oklch */ color: oklch(34.0% 0.146 285.7);
Tailwind
colors: {
  custom: {
    50: '#755fa4',
    500: '#36227e',
    950: '#000000',
  },
}
SCSS
$custom: #36227e;
$custom-light: #755fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#36227e",
  "rgb": {
    "r": 54,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 253.043,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34032,
    "c": 0.14592,
    "h": 285.7
  },
  "luminance": 0.03435
}

Semantic roles & 50–950 ramp

primary
#36227E
secondary
#9BB14B
accent
#E147BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #36227E

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

Preview Lab → · Contrast checker → · Palette generator →

#36227E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva