#371F83#371F83

#371F83 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.156 H 285.8°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#371F83
RGBrgb(55, 31, 131)
HSLhsl(254, 62%, 32%)
HSVhsv(254, 76%, 51%)
CMYKcmyk(58%, 76.3%, 0%, 48.6%)
CIE-LABlab(21.69, 38.39, -52.03)
CIE-LCHlch(21.69, 64.66, 306.42°)
OKLaboklab(34.2% 0.0423 -0.1498)
OKLCHoklch(34.2% 0.156 285.8)
XYZxyz(6.1610, 3.4305, 21.8058)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F83 #6B831F
analogous
#1F3983 #371F83 #691F83
triadic
#371F83 #83371F #1F8337
tetradic
#371F83 #831F39 #6B831F #1F8369
square
#371F83 #831F39 #6B831F #1F8369
split-complementary
#371F83 #83691F #39831F
monochromatic
#0D0820 #221352 #371F83 #4C2BB4 #6A49D4

Accessibility & contrast

On white

12.45
#371F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#371F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F83
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F83#FFFFFF#000000##FFFFFF
##371F831.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#003181
Tritanopia (blue-blind)
#133B4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #371f83;
/* rgb */ color: rgb(55, 31, 131);
/* oklch */ color: oklch(34.2% 0.156 285.8);
Tailwind
colors: {
  custom: {
    50: '#775da8',
    500: '#371f83',
    950: '#000000',
  },
}
SCSS
$custom: #371f83;
$custom-light: #775da8;
$custom-dark: #000000;
JSON
{
  "hex": "#371f83",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 254.4,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34195,
    "c": 0.15563,
    "h": 285.8
  },
  "luminance": 0.03431
}

Semantic roles & 50–950 ramp

primary
#371F83
secondary
#9BB648
accent
#E543BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371F83

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

Preview Lab → · Contrast checker → · Palette generator →

#371F83 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva