#36228E#36228E

#36228E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.166 H 282.4°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#36228E
RGBrgb(54, 34, 142)
HSLhsl(251, 61%, 35%)
HSVhsv(251, 76%, 56%)
CMYKcmyk(62%, 76.1%, 0%, 44.3%)
CIE-LABlab(23.27, 40.04, -56.32)
CIE-LCHlch(23.27, 69.10, 305.42°)
OKLaboklab(35.62% 0.0357 -0.1624)
OKLCHoklch(35.62% 0.166 282.4)
XYZxyz(6.9743, 3.8808, 25.9675)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36228E #7A8E22
analogous
#22448E #36228E #6C228E
triadic
#36228E #8E3622 #228E36
tetradic
#36228E #8E2244 #7A8E22 #228E6C
square
#36228E #8E2244 #7A8E22 #228E6C
split-complementary
#36228E #8E6C22 #448E22
monochromatic
#100A2B #23165D #36228E #492EBF #6C54D6

Accessibility & contrast

On white

11.82
#36228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#36228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #36228E
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36228E#FFFFFF#000000##FFFFFF
##36228E1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #36228e;
/* rgb */ color: rgb(54, 34, 142);
/* oklch */ color: oklch(35.6% 0.166 282.4);
Tailwind
colors: {
  custom: {
    50: '#7960b0',
    500: '#36228e',
    950: '#000000',
  },
}
SCSS
$custom: #36228e;
$custom-light: #7960b0;
$custom-dark: #000000;
JSON
{
  "hex": "#36228e",
  "rgb": {
    "r": 54,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 251.111,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35621,
    "c": 0.16624,
    "h": 282.4
  },
  "luminance": 0.03881
}

Semantic roles & 50–950 ramp

primary
#36228E
secondary
#A7BA52
accent
#E443C7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #36228E

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

Preview Lab → · Contrast checker → · Palette generator →

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