#36228B#36228B

#36228B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.162 H 283.0°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#36228B
RGBrgb(54, 34, 139)
HSLhsl(251, 61%, 34%)
HSVhsv(251, 76%, 55%)
CMYKcmyk(61.2%, 75.5%, 0%, 45.5%)
CIE-LABlab(22.97, 39.10, -54.94)
CIE-LCHlch(22.97, 67.44, 305.44°)
OKLaboklab(35.32% 0.0364 -0.1583)
OKLCHoklch(35.32% 0.162 283)
XYZxyz(6.7521, 3.7920, 24.7972)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36228B #778B22
analogous
#22428B #36228B #6B228B
triadic
#36228B #8B3622 #228B36
tetradic
#36228B #8B2242 #778B22 #228B6B
square
#36228B #8B2242 #778B22 #228B6B
split-complementary
#36228B #8B6B22 #428B22
monochromatic
#100A29 #23165A #36228B #492EBC #6B53D5

Accessibility & contrast

On white

11.94
#36228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#36228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #36228B
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36228B#FFFFFF#000000##FFFFFF
##36228B1.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)
#003A8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #36228b;
/* rgb */ color: rgb(54, 34, 139);
/* oklch */ color: oklch(35.3% 0.162 283.0);
Tailwind
colors: {
  custom: {
    50: '#7860ae',
    500: '#36228b',
    950: '#000000',
  },
}
SCSS
$custom: #36228b;
$custom-light: #7860ae;
$custom-dark: #000000;
JSON
{
  "hex": "#36228b",
  "rgb": {
    "r": 54,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 251.429,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35316,
    "c": 0.16249,
    "h": 283
  },
  "luminance": 0.03792
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #36228B

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

Preview Lab → · Contrast checker → · Palette generator →

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