#361F78#361F78

#361F78 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.142 H 287.8°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#361F78
RGBrgb(54, 31, 120)
HSLhsl(256, 59%, 30%)
HSVhsv(256, 74%, 47%)
CMYKcmyk(55%, 74.2%, 0%, 52.9%)
CIE-LABlab(20.52, 34.82, -46.97)
CIE-LCHlch(20.52, 58.47, 306.55°)
OKLaboklab(33.01% 0.0434 -0.135)
OKLCHoklch(33.01% 0.142 287.8)
XYZxyz(5.4005, 3.1200, 18.0833)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#361F78 #61781F
analogous
#1F3478 #361F78 #631F78
triadic
#361F78 #78361F #1F7836
tetradic
#361F78 #781F34 #61781F #1F7863
square
#361F78 #781F34 #61781F #1F7863
split-complementary
#361F78 #78631F #34781F
monochromatic
#0B0618 #201247 #361F78 #4C2CA9 #6743CE

Accessibility & contrast

On white

12.93
#361F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#361F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##361F78#FFFFFF#000000##FFFFFF
##361F781.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)
#00337B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#1C3749
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #361f78;
/* rgb */ color: rgb(54, 31, 120);
/* oklch */ color: oklch(33.0% 0.142 287.8);
Tailwind
colors: {
  custom: {
    50: '#755da0',
    500: '#361f78',
    950: '#000000',
  },
}
SCSS
$custom: #361f78;
$custom-light: #755da0;
$custom-dark: #000000;
JSON
{
  "hex": "#361f78",
  "rgb": {
    "r": 54,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 255.506,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33013,
    "c": 0.1418,
    "h": 287.8
  },
  "luminance": 0.0312
}

Semantic roles & 50–950 ramp

primary
#361F78
secondary
#92AB47
accent
#E246BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #361F78

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

Preview Lab → · Contrast checker → · Palette generator →

#361F78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva