#371A78#371A78

#371A78 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.148 H 289.6°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#371A78
RGBrgb(55, 26, 120)
HSLhsl(259, 64%, 29%)
HSVhsv(259, 78%, 47%)
CMYKcmyk(54.2%, 78.3%, 0%, 52.9%)
CIE-LABlab(19.67, 37.69, -48.36)
CIE-LCHlch(19.67, 61.32, 307.93°)
OKLaboklab(32.44% 0.0494 -0.139)
OKLCHoklch(32.44% 0.148 289.6)
XYZxyz(5.3341, 2.9068, 18.0457)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A78 #5B781A
analogous
#1A2C78 #371A78 #661A78
triadic
#371A78 #78371A #1A7837
tetradic
#371A78 #781A2C #5B781A #1A7866
square
#371A78 #781A2C #5B781A #1A7866
split-complementary
#371A78 #78661A #2C781A
monochromatic
#0C0519 #200F46 #371A78 #4E25AA #6838D4

Accessibility & contrast

On white

13.28
#371A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#371A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A78
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A78#FFFFFF#000000##FFFFFF
##371A781.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371a78;
/* rgb */ color: rgb(55, 26, 120);
/* oklch */ color: oklch(32.4% 0.148 289.6);
Tailwind
colors: {
  custom: {
    50: '#765aa0',
    500: '#371a78',
    950: '#000000',
  },
}
SCSS
$custom: #371a78;
$custom-light: #765aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#371a78",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 258.511,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32438,
    "c": 0.14753,
    "h": 289.6
  },
  "luminance": 0.02907
}

Semantic roles & 50–950 ramp

primary
#371A78
secondary
#8BAC41
accent
#E740B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #371A78

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

Preview Lab → · Contrast checker → · Palette generator →

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