#371F78#371F78

#371F78 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.142 H 288.5°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#371F78
RGBrgb(55, 31, 120)
HSLhsl(256, 59%, 30%)
HSVhsv(256, 74%, 47%)
CMYKcmyk(54.2%, 74.2%, 0%, 52.9%)
CIE-LABlab(20.63, 34.99, -46.79)
CIE-LCHlch(20.63, 58.42, 306.79°)
OKLaboklab(33.12% 0.045 -0.1344)
OKLCHoklch(33.12% 0.142 288.5)
XYZxyz(5.4547, 3.1480, 18.0859)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F78 #60781F
analogous
#1F3478 #371F78 #641F78
triadic
#371F78 #78371F #1F7837
tetradic
#371F78 #781F34 #60781F #1F7864
square
#371F78 #781F34 #60781F #1F7864
split-complementary
#371F78 #78641F #34781F
monochromatic
#0B0618 #211247 #371F78 #4D2CA9 #6943CE

Accessibility & contrast

On white

12.89
#371F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#371F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##371F78#FFFFFF#000000##FFFFFF
##371F781.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)
#00347B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#1E3649
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371f78;
/* rgb */ color: rgb(55, 31, 120);
/* oklch */ color: oklch(33.1% 0.142 288.5);
Tailwind
colors: {
  custom: {
    50: '#755da0',
    500: '#371f78',
    950: '#000000',
  },
}
SCSS
$custom: #371f78;
$custom-light: #755da0;
$custom-dark: #000000;
JSON
{
  "hex": "#371f78",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 256.18,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33116,
    "c": 0.14174,
    "h": 288.5
  },
  "luminance": 0.03148
}

Semantic roles & 50–950 ramp

primary
#371F78
secondary
#90AB47
accent
#E246B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #371F78

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

Preview Lab → · Contrast checker → · Palette generator →

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