#361786#361786

#361786 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.167 H 285.8°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#361786
RGBrgb(54, 23, 134)
HSLhsl(257, 71%, 31%)
HSVhsv(257, 83%, 53%)
CMYKcmyk(59.7%, 82.8%, 0%, 47.5%)
CIE-LABlab(20.51, 43.14, -55.87)
CIE-LCHlch(20.51, 70.58, 307.67°)
OKLaboklab(33.44% 0.0455 -0.1609)
OKLCHoklch(33.44% 0.167 285.8)
XYZxyz(6.1295, 3.1179, 22.8285)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#361786 #678617
analogous
#172F86 #361786 #6D1786
triadic
#361786 #863617 #178636
tetradic
#361786 #86172F #678617 #17866D
square
#361786 #86172F #678617 #17866D
split-complementary
#361786 #866D17 #2F8617
monochromatic
#0C051E #210E52 #361786 #4B20BA #683ADD

Accessibility & contrast

On white

12.93
#361786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#361786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #361786
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##361786#FFFFFF#000000##FFFFFF
##3617861.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#0A394F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #361786;
/* rgb */ color: rgb(54, 23, 134);
/* oklch */ color: oklch(33.4% 0.167 285.8);
Tailwind
colors: {
  custom: {
    50: '#7859aa',
    500: '#361786',
    950: '#000000',
  },
}
SCSS
$custom: #361786;
$custom-light: #7859aa;
$custom-dark: #000000;
JSON
{
  "hex": "#361786",
  "rgb": {
    "r": 54,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 256.757,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33438,
    "c": 0.16726,
    "h": 285.8
  },
  "luminance": 0.03118
}

Semantic roles & 50–950 ramp

primary
#361786
secondary
#98BA3F
accent
#ED3ABB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #361786

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

Preview Lab → · Contrast checker → · Palette generator →

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