#361788#361788

#361788 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.170 H 285.3°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#361788
RGBrgb(54, 23, 136)
HSLhsl(256, 71%, 31%)
HSVhsv(256, 83%, 53%)
CMYKcmyk(60.3%, 83.1%, 0%, 46.7%)
CIE-LABlab(20.73, 43.72, -56.76)
CIE-LCHlch(20.73, 71.65, 307.60°)
OKLaboklab(33.65% 0.0448 -0.1635)
OKLCHoklch(33.65% 0.17 285.3)
XYZxyz(6.2703, 3.1742, 23.5701)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#361788 #698817
analogous
#173088 #361788 #6E1788
triadic
#361788 #883617 #178836
tetradic
#361788 #881730 #698817 #17886E
square
#361788 #881730 #698817 #17886E
split-complementary
#361788 #886E17 #308817
monochromatic
#0C051F #210E54 #361788 #4B20BC #683BDE

Accessibility & contrast

On white

12.84
#361788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#361788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #361788
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##361788#FFFFFF#000000##FFFFFF
##3617881.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#053950
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #361788;
/* rgb */ color: rgb(54, 23, 136);
/* oklch */ color: oklch(33.7% 0.170 285.3);
Tailwind
colors: {
  custom: {
    50: '#7859ac',
    500: '#361788',
    950: '#000000',
  },
}
SCSS
$custom: #361788;
$custom-light: #7859ac;
$custom-dark: #000000;
JSON
{
  "hex": "#361788",
  "rgb": {
    "r": 54,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 256.46,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33654,
    "c": 0.16959,
    "h": 285.3
  },
  "luminance": 0.03175
}

Semantic roles & 50–950 ramp

primary
#361788
secondary
#9ABC3F
accent
#EE3ABC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #361788

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

Preview Lab → · Contrast checker → · Palette generator →

#361788 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva