#371983#371983

#371983 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.162 H 286.8°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#371983
RGBrgb(55, 25, 131)
HSLhsl(257, 68%, 31%)
HSVhsv(257, 81%, 51%)
CMYKcmyk(58%, 80.9%, 0%, 48.6%)
CIE-LABlab(20.62, 41.45, -53.79)
CIE-LCHlch(20.62, 67.91, 307.62°)
OKLaboklab(33.44% 0.0469 -0.1549)
OKLCHoklch(33.44% 0.162 286.8)
XYZxyz(6.0187, 3.1458, 21.7584)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371983 #658319
analogous
#193083 #371983 #6C1983
triadic
#371983 #833719 #198337
tetradic
#371983 #831930 #658319 #19836C
square
#371983 #831930 #658319 #19836C
split-complementary
#371983 #836C19 #308319
monochromatic
#0C051C #210F50 #371983 #4D23B6 #693DDA

Accessibility & contrast

On white

12.89
#371983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371983
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371983#FFFFFF#000000##FFFFFF
##3719831.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#13384E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371983;
/* rgb */ color: rgb(55, 25, 131);
/* oklch */ color: oklch(33.4% 0.162 286.8);
Tailwind
colors: {
  custom: {
    50: '#785aa8',
    500: '#371983',
    950: '#000000',
  },
}
SCSS
$custom: #371983;
$custom-light: #785aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#371983",
  "rgb": {
    "r": 55,
    "g": 25,
    "b": 131
  },
  "hsl": {
    "h": 256.981,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33443,
    "c": 0.16181,
    "h": 286.8
  },
  "luminance": 0.03146
}

Semantic roles & 50–950 ramp

primary
#371983
secondary
#95B741
accent
#EB3DBA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371983

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

Preview Lab → · Contrast checker → · Palette generator →

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