#361988#361988

#361988 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.168 H 285.1°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#361988
RGBrgb(54, 25, 136)
HSLhsl(256, 69%, 32%)
HSVhsv(256, 82%, 53%)
CMYKcmyk(60.3%, 81.6%, 0%, 46.7%)
CIE-LABlab(21.04, 42.80, -56.24)
CIE-LCHlch(21.04, 70.68, 307.27°)
OKLaboklab(33.87% 0.0436 -0.1621)
OKLCHoklch(33.87% 0.168 285.1)
XYZxyz(6.3115, 3.2567, 23.5838)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#361988 #6B8819
analogous
#193488 #361988 #6E1988
triadic
#361988 #883619 #198836
tetradic
#361988 #881934 #6B8819 #19886E
square
#361988 #881934 #6B8819 #19886E
split-complementary
#361988 #886E19 #348819
monochromatic
#0D0621 #210F54 #361988 #4B23BC #6840DC

Accessibility & contrast

On white

12.72
#361988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #361988
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##361988#FFFFFF#000000##FFFFFF
##3619881.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#053A51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #361988;
/* rgb */ color: rgb(54, 25, 136);
/* oklch */ color: oklch(33.9% 0.168 285.1);
Tailwind
colors: {
  custom: {
    50: '#785aac',
    500: '#361988',
    950: '#000000',
  },
}
SCSS
$custom: #361988;
$custom-light: #785aac;
$custom-dark: #000000;
JSON
{
  "hex": "#361988",
  "rgb": {
    "r": 54,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 255.676,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33873,
    "c": 0.16782,
    "h": 285.1
  },
  "luminance": 0.03257
}

Semantic roles & 50–950 ramp

primary
#361988
secondary
#9CBB41
accent
#EC3CBE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #361988

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

Preview Lab → · Contrast checker → · Palette generator →

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