#36228A#36228A

#36228A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.161 H 283.1°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#36228A
RGBrgb(54, 34, 138)
HSLhsl(252, 60%, 34%)
HSVhsv(252, 75%, 54%)
CMYKcmyk(60.9%, 75.4%, 0%, 45.9%)
CIE-LABlab(22.87, 38.78, -54.48)
CIE-LCHlch(22.87, 66.88, 305.44°)
OKLaboklab(35.22% 0.0367 -0.157)
OKLCHoklch(35.22% 0.161 283.1)
XYZxyz(6.6794, 3.7629, 24.4142)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36228A #768A22
analogous
#22428A #36228A #6A228A
triadic
#36228A #8A3622 #228A36
tetradic
#36228A #8A2242 #768A22 #228A6A
square
#36228A #8A2242 #768A22 #228A6A
split-complementary
#36228A #8A6A22 #428A22
monochromatic
#100A28 #231659 #36228A #492EBB #6B52D4

Accessibility & contrast

On white

11.98
#36228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#36228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #36228A
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36228A#FFFFFF#000000##FFFFFF
##36228A1.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)
#003A8D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #36228a;
/* rgb */ color: rgb(54, 34, 138);
/* oklch */ color: oklch(35.2% 0.161 283.1);
Tailwind
colors: {
  custom: {
    50: '#7860ad',
    500: '#36228a',
    950: '#000000',
  },
}
SCSS
$custom: #36228a;
$custom-light: #7860ad;
$custom-dark: #000000;
JSON
{
  "hex": "#36228a",
  "rgb": {
    "r": 54,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 251.538,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35215,
    "c": 0.16124,
    "h": 283.1
  },
  "luminance": 0.03763
}

Semantic roles & 50–950 ramp

primary
#36228A
secondary
#A4B850
accent
#E444C5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #36228A

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

Preview Lab → · Contrast checker → · Palette generator →

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