#371E80#371E80

#371E80 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.153 H 286.7°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#371E80
RGBrgb(55, 30, 128)
HSLhsl(255, 62%, 31%)
HSVhsv(255, 77%, 50%)
CMYKcmyk(57%, 76.6%, 0%, 49.8%)
CIE-LABlab(21.20, 38.00, -50.93)
CIE-LCHlch(21.20, 63.55, 306.73°)
OKLaboklab(33.76% 0.0439 -0.1466)
OKLCHoklch(33.76% 0.153 286.7)
XYZxyz(5.9349, 3.2990, 20.7419)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E80 #67801E
analogous
#1E3680 #371E80 #681E80
triadic
#371E80 #80371E #1E8037
tetradic
#371E80 #801E36 #67801E #1E8068
square
#371E80 #801E36 #67801E #1E8068
split-complementary
#371E80 #80681E #36801E
monochromatic
#0C071D #22124E #371E80 #4C2AB2 #6945D3

Accessibility & contrast

On white

12.65
#371E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#371E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E80
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E80#FFFFFF#000000##FFFFFF
##371E801.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#17394D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371e80;
/* rgb */ color: rgb(55, 30, 128);
/* oklch */ color: oklch(33.8% 0.153 286.7);
Tailwind
colors: {
  custom: {
    50: '#775da6',
    500: '#371e80',
    950: '#000000',
  },
}
SCSS
$custom: #371e80;
$custom-light: #775da6;
$custom-dark: #000000;
JSON
{
  "hex": "#371e80",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 128
  },
  "hsl": {
    "h": 255.306,
    "s": 62.025,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3376,
    "c": 0.153,
    "h": 286.7
  },
  "luminance": 0.03299
}

Semantic roles & 50–950 ramp

primary
#371E80
secondary
#97B347
accent
#E543BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371E80

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

Preview Lab → · Contrast checker → · Palette generator →

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