#36228F#36228F

#36228F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.167 H 282.2°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#36228F
RGBrgb(54, 34, 143)
HSLhsl(251, 62%, 35%)
HSVhsv(251, 76%, 56%)
CMYKcmyk(62.2%, 76.2%, 0%, 43.9%)
CIE-LABlab(23.38, 40.36, -56.77)
CIE-LCHlch(23.38, 69.65, 305.41°)
OKLaboklab(35.72% 0.0354 -0.1637)
OKLCHoklch(35.72% 0.167 282.2)
XYZxyz(7.0497, 3.9110, 26.3647)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#36228F #7B8F22
analogous
#22458F #36228F #6D228F
triadic
#36228F #8F3622 #228F36
tetradic
#36228F #8F2245 #7B8F22 #228F6D
square
#36228F #8F2245 #7B8F22 #228F6D
split-complementary
#36228F #8F6D22 #458F22
monochromatic
#110A2C #23165E #36228F #492EC0 #6D55D7

Accessibility & contrast

On white

11.78
#36228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #36228F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##36228F#FFFFFF#000000##FFFFFF
##36228F1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #36228f;
/* rgb */ color: rgb(54, 34, 143);
/* oklch */ color: oklch(35.7% 0.167 282.2);
Tailwind
colors: {
  custom: {
    50: '#7960b1',
    500: '#36228f',
    950: '#000000',
  },
}
SCSS
$custom: #36228f;
$custom-light: #7960b1;
$custom-dark: #000000;
JSON
{
  "hex": "#36228f",
  "rgb": {
    "r": 54,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 251.009,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35723,
    "c": 0.16748,
    "h": 282.2
  },
  "luminance": 0.03911
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #36228F

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

Preview Lab → · Contrast checker → · Palette generator →

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