#371984#371984

#371984 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.163 H 286.6°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#371984
RGBrgb(55, 25, 132)
HSLhsl(257, 68%, 31%)
HSVhsv(257, 81%, 52%)
CMYKcmyk(58.3%, 81.1%, 0%, 48.2%)
CIE-LABlab(20.72, 41.75, -54.25)
CIE-LCHlch(20.72, 68.45, 307.58°)
OKLaboklab(33.55% 0.0465 -0.1562)
OKLCHoklch(33.55% 0.163 286.6)
XYZxyz(6.0868, 3.1731, 22.1171)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371984 #668419
analogous
#193184 #371984 #6C1984
triadic
#371984 #843719 #198437
tetradic
#371984 #841931 #668419 #19846C
square
#371984 #841931 #668419 #19846C
split-complementary
#371984 #846C19 #318419
monochromatic
#0C061D #220F51 #371984 #4C23B7 #693DDA

Accessibility & contrast

On white

12.85
#371984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#371984 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371984
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371984#FFFFFF#000000##FFFFFF
##3719841.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371984;
/* rgb */ color: rgb(55, 25, 132);
/* oklch */ color: oklch(33.5% 0.163 286.6);
Tailwind
colors: {
  custom: {
    50: '#785aa9',
    500: '#371984',
    950: '#000000',
  },
}
SCSS
$custom: #371984;
$custom-light: #785aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#371984",
  "rgb": {
    "r": 55,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 256.822,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33548,
    "c": 0.16299,
    "h": 286.6
  },
  "luminance": 0.03173
}

Semantic roles & 50–950 ramp

primary
#371984
secondary
#96B841
accent
#EB3DBA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371984

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

Preview Lab → · Contrast checker → · Palette generator →

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