#36228D#36228D

#36228D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.165 H 282.6°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#36228D
RGBrgb(54, 34, 141)
HSLhsl(251, 61%, 34%)
HSVhsv(251, 76%, 55%)
CMYKcmyk(61.7%, 75.9%, 0%, 44.7%)
CIE-LABlab(23.17, 39.73, -55.86)
CIE-LCHlch(23.17, 68.55, 305.42°)
OKLaboklab(35.52% 0.0359 -0.161)
OKLCHoklch(35.52% 0.165 282.6)
XYZxyz(6.8996, 3.8509, 25.5739)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36228D #798D22
analogous
#22448D #36228D #6C228D
triadic
#36228D #8D3622 #228D36
tetradic
#36228D #8D2244 #798D22 #228D6C
square
#36228D #8D2244 #798D22 #228D6C
split-complementary
#36228D #8D6C22 #448D22
monochromatic
#100A2A #23165C #36228D #492EBE #6C54D6

Accessibility & contrast

On white

11.86
#36228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#36228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #36228D
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36228D#FFFFFF#000000##FFFFFF
##36228D1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #36228d;
/* rgb */ color: rgb(54, 34, 141);
/* oklch */ color: oklch(35.5% 0.165 282.6);
Tailwind
colors: {
  custom: {
    50: '#7860af',
    500: '#36228d',
    950: '#000000',
  },
}
SCSS
$custom: #36228d;
$custom-light: #7860af;
$custom-dark: #000000;
JSON
{
  "hex": "#36228d",
  "rgb": {
    "r": 54,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 251.215,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35519,
    "c": 0.16499,
    "h": 282.6
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#36228D
secondary
#A6B951
accent
#E444C6
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #36228D

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

Preview Lab → · Contrast checker → · Palette generator →

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