#371E78#371E78

#371E78 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.143 H 288.7°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#371E78
RGBrgb(55, 30, 120)
HSLhsl(257, 60%, 29%)
HSVhsv(257, 75%, 47%)
CMYKcmyk(54.2%, 75%, 0%, 52.9%)
CIE-LABlab(20.43, 35.55, -47.12)
CIE-LCHlch(20.43, 59.02, 307.03°)
OKLaboklab(32.97% 0.0459 -0.1354)
OKLCHoklch(32.97% 0.143 288.7)
XYZxyz(5.4290, 3.0966, 18.0773)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E78 #5F781E
analogous
#1E3278 #371E78 #641E78
triadic
#371E78 #78371E #1E7837
tetradic
#371E78 #781E32 #5F781E #1E7864
square
#371E78 #781E32 #5F781E #1E7864
split-complementary
#371E78 #78641E #32781E
monochromatic
#0B0618 #211247 #371E78 #4D2AA9 #6941CF

Accessibility & contrast

On white

12.97
#371E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#371E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E78
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E78#FFFFFF#000000##FFFFFF
##371E781.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#1F3649
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371e78;
/* rgb */ color: rgb(55, 30, 120);
/* oklch */ color: oklch(33.0% 0.143 288.7);
Tailwind
colors: {
  custom: {
    50: '#755ca0',
    500: '#371e78',
    950: '#000000',
  },
}
SCSS
$custom: #371e78;
$custom-light: #755ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#371e78",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 120
  },
  "hsl": {
    "h": 256.667,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32974,
    "c": 0.14295,
    "h": 288.7
  },
  "luminance": 0.03097
}

Semantic roles & 50–950 ramp

primary
#371E78
secondary
#8FAC46
accent
#E345B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #371E78

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

Preview Lab → · Contrast checker → · Palette generator →

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