#371684#371684

#371684 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.166 H 287.0°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#371684
RGBrgb(55, 22, 132)
HSLhsl(258, 71%, 30%)
HSVhsv(258, 83%, 52%)
CMYKcmyk(58.3%, 83.3%, 0%, 48.2%)
CIE-LABlab(20.25, 43.13, -55.03)
CIE-LCHlch(20.25, 69.92, 308.08°)
OKLaboklab(33.22% 0.0485 -0.1585)
OKLCHoklch(33.22% 0.166 287)
XYZxyz(6.0261, 3.0517, 22.0968)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371684 #638416
analogous
#162C84 #371684 #6E1684
triadic
#371684 #843716 #168437
tetradic
#371684 #84162C #638416 #16846E
square
#371684 #84162C #638416 #16846E
split-complementary
#371684 #846E16 #2C8416
monochromatic
#0B051B #210D50 #371684 #4D1FB8 #6937DE

Accessibility & contrast

On white

13.04
#371684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#371684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371684
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371684#FFFFFF#000000##FFFFFF
##3716841.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#12374E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371684;
/* rgb */ color: rgb(55, 22, 132);
/* oklch */ color: oklch(33.2% 0.166 287.0);
Tailwind
colors: {
  custom: {
    50: '#7859a9',
    500: '#371684',
    950: '#000000',
  },
}
SCSS
$custom: #371684;
$custom-light: #7859a9;
$custom-dark: #000000;
JSON
{
  "hex": "#371684",
  "rgb": {
    "r": 55,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 258,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33219,
    "c": 0.16572,
    "h": 287
  },
  "luminance": 0.03052
}

Semantic roles & 50–950 ramp

primary
#371684
secondary
#93B83D
accent
#EE3AB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371684

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

Preview Lab → · Contrast checker → · Palette generator →

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