#371B78#371B78

#371B78 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.146 H 289.4°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#371B78
RGBrgb(55, 27, 120)
HSLhsl(258, 63%, 29%)
HSVhsv(258, 78%, 47%)
CMYKcmyk(54.2%, 77.5%, 0%, 52.9%)
CIE-LABlab(19.85, 37.17, -48.06)
CIE-LCHlch(19.85, 60.76, 307.72°)
OKLaboklab(32.57% 0.0486 -0.1381)
OKLCHoklch(32.57% 0.146 289.4)
XYZxyz(5.3567, 2.9519, 18.0532)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B78 #5C781B
analogous
#1B2E78 #371B78 #661B78
triadic
#371B78 #78371B #1B7837
tetradic
#371B78 #781B2E #5C781B #1B7866
square
#371B78 #781B2E #5C781B #1B7866
split-complementary
#371B78 #78661B #2E781B
monochromatic
#0B0619 #201046 #371B78 #4E26AA #683BD3

Accessibility & contrast

On white

13.20
#371B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#371B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B78
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B78#FFFFFF#000000##FFFFFF
##371B781.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#1F3448
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #371b78;
/* rgb */ color: rgb(55, 27, 120);
/* oklch */ color: oklch(32.6% 0.146 289.4);
Tailwind
colors: {
  custom: {
    50: '#765ba0',
    500: '#371b78',
    950: '#000000',
  },
}
SCSS
$custom: #371b78;
$custom-light: #765ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#371b78",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 258.065,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32567,
    "c": 0.14642,
    "h": 289.4
  },
  "luminance": 0.02952
}

Semantic roles & 50–950 ramp

primary
#371B78
secondary
#8CAC43
accent
#E641B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #371B78

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

Preview Lab → · Contrast checker → · Palette generator →

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