#362178#362178

#362178 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.139 H 287.3°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#362178
RGBrgb(54, 33, 120)
HSLhsl(254, 57%, 30%)
HSVhsv(254, 73%, 47%)
CMYKcmyk(55%, 72.5%, 0%, 52.9%)
CIE-LABlab(20.93, 33.66, -46.29)
CIE-LCHlch(20.93, 57.24, 306.02°)
OKLaboklab(33.31% 0.0415 -0.133)
OKLCHoklch(33.31% 0.139 287.3)
XYZxyz(5.4543, 3.2278, 18.1013)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#362178 #637821
analogous
#213778 #362178 #622178
triadic
#362178 #783621 #217836
tetradic
#362178 #782137 #637821 #217862
square
#362178 #782137 #637821 #217862
split-complementary
#362178 #786221 #377821
monochromatic
#0B0718 #201448 #362178 #4C2EA8 #6747CC

Accessibility & contrast

On white

12.76
#362178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#362178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #362178
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##362178#FFFFFF#000000##FFFFFF
##3621781.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#1C384A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #362178;
/* rgb */ color: rgb(54, 33, 120);
/* oklch */ color: oklch(33.3% 0.139 287.3);
Tailwind
colors: {
  custom: {
    50: '#745ea0',
    500: '#362178',
    950: '#000000',
  },
}
SCSS
$custom: #362178;
$custom-light: #745ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#362178",
  "rgb": {
    "r": 54,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 254.483,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.33309,
    "c": 0.13934,
    "h": 287.3
  },
  "luminance": 0.03228
}

Semantic roles & 50–950 ramp

primary
#362178
secondary
#94AB4A
accent
#E048BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #362178

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

Preview Lab → · Contrast checker → · Palette generator →

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