#371784#371784

#371784 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.165 H 286.9°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#371784
RGBrgb(55, 23, 132)
HSLhsl(258, 70%, 30%)
HSVhsv(258, 83%, 52%)
CMYKcmyk(58.3%, 82.6%, 0%, 48.2%)
CIE-LABlab(20.40, 42.68, -54.78)
CIE-LCHlch(20.40, 69.44, 307.92°)
OKLaboklab(33.33% 0.0479 -0.1577)
OKLCHoklch(33.33% 0.165 286.9)
XYZxyz(6.0456, 3.0906, 22.1033)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371784 #648417
analogous
#172D84 #371784 #6E1784
triadic
#371784 #843717 #178437
tetradic
#371784 #84172D #648417 #17846E
square
#371784 #84172D #648417 #17846E
split-complementary
#371784 #846E17 #2D8417
monochromatic
#0C051C #210E50 #371784 #4D20B8 #6939DC

Accessibility & contrast

On white

12.98
#371784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371784
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371784#FFFFFF#000000##FFFFFF
##3717841.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371784;
/* rgb */ color: rgb(55, 23, 132);
/* oklch */ color: oklch(33.3% 0.165 286.9);
Tailwind
colors: {
  custom: {
    50: '#7859a9',
    500: '#371784',
    950: '#000000',
  },
}
SCSS
$custom: #371784;
$custom-light: #7859a9;
$custom-dark: #000000;
JSON
{
  "hex": "#371784",
  "rgb": {
    "r": 55,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 257.615,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33326,
    "c": 0.16483,
    "h": 286.9
  },
  "luminance": 0.03091
}

Semantic roles & 50–950 ramp

primary
#371784
secondary
#94B83F
accent
#ED3BB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371784

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

Preview Lab → · Contrast checker → · Palette generator →

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