#371E83#371E83

#371E83 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.157 H 286.0°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#371E83
RGBrgb(55, 30, 131)
HSLhsl(255, 63%, 32%)
HSVhsv(255, 77%, 51%)
CMYKcmyk(58%, 77.1%, 0%, 48.6%)
CIE-LABlab(21.50, 38.92, -52.34)
CIE-LCHlch(21.50, 65.23, 306.64°)
OKLaboklab(34.06% 0.0431 -0.1507)
OKLCHoklch(34.06% 0.157 286)
XYZxyz(6.1353, 3.3791, 21.7973)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E83 #6A831E
analogous
#1E3883 #371E83 #6A1E83
triadic
#371E83 #83371E #1E8337
tetradic
#371E83 #831E38 #6A831E #1E836A
square
#371E83 #831E38 #6A831E #1E836A
split-complementary
#371E83 #836A1E #38831E
monochromatic
#0D071F #221351 #371E83 #4C29B5 #6A47D5

Accessibility & contrast

On white

12.53
#371E83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#371E83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E83
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E83#FFFFFF#000000##FFFFFF
##371E831.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371e83;
/* rgb */ color: rgb(55, 30, 131);
/* oklch */ color: oklch(34.1% 0.157 286.0);
Tailwind
colors: {
  custom: {
    50: '#775da8',
    500: '#371e83',
    950: '#000000',
  },
}
SCSS
$custom: #371e83;
$custom-light: #775da8;
$custom-dark: #000000;
JSON
{
  "hex": "#371e83",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 131
  },
  "hsl": {
    "h": 254.851,
    "s": 62.733,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34062,
    "c": 0.15672,
    "h": 286
  },
  "luminance": 0.03379
}

Semantic roles & 50–950 ramp

primary
#371E83
secondary
#9AB647
accent
#E642BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371E83

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

Preview Lab → · Contrast checker → · Palette generator →

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