#371D78#371D78

#371D78 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.144 H 289.0°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#371D78
RGBrgb(55, 29, 120)
HSLhsl(257, 61%, 29%)
HSVhsv(257, 76%, 47%)
CMYKcmyk(54.2%, 75.8%, 0%, 52.9%)
CIE-LABlab(20.23, 36.10, -47.44)
CIE-LCHlch(20.23, 59.61, 307.27°)
OKLaboklab(32.84% 0.0468 -0.1363)
OKLCHoklch(32.84% 0.144 289)
XYZxyz(5.4041, 3.0468, 18.0690)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D78 #5E781D
analogous
#1D3178 #371D78 #651D78
triadic
#371D78 #78371D #1D7837
tetradic
#371D78 #781D31 #5E781D #1D7865
square
#371D78 #781D31 #5E781D #1D7865
split-complementary
#371D78 #78651D #31781D
monochromatic
#0B0619 #201147 #371D78 #4E29A9 #683FD1

Accessibility & contrast

On white

13.05
#371D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#371D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D78
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D78#FFFFFF#000000##FFFFFF
##371D781.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371d78;
/* rgb */ color: rgb(55, 29, 120);
/* oklch */ color: oklch(32.8% 0.144 289.0);
Tailwind
colors: {
  custom: {
    50: '#755ca0',
    500: '#371d78',
    950: '#000000',
  },
}
SCSS
$custom: #371d78;
$custom-light: #755ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#371d78",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 257.143,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32835,
    "c": 0.14414,
    "h": 289
  },
  "luminance": 0.03047
}

Semantic roles & 50–950 ramp

primary
#371D78
secondary
#8EAC45
accent
#E444B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #371D78

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

Preview Lab → · Contrast checker → · Palette generator →

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