#371A74#371A74

#371A74 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.143 H 290.8°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#371A74
RGBrgb(55, 26, 116)
HSLhsl(259, 63%, 28%)
HSVhsv(259, 78%, 45%)
CMYKcmyk(52.6%, 77.6%, 0%, 54.5%)
CIE-LABlab(19.27, 36.50, -46.44)
CIE-LCHlch(19.27, 59.07, 308.17°)
OKLaboklab(32.04% 0.0506 -0.1334)
OKLCHoklch(32.04% 0.143 290.8)
XYZxyz(5.0964, 2.8118, 16.7938)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A74 #57741A
analogous
#1A2A74 #371A74 #641A74
triadic
#371A74 #74371A #1A7437
tetradic
#371A74 #741A2A #57741A #1A7464
square
#371A74 #741A2A #57741A #1A7464
split-complementary
#371A74 #74641A #2A741A
monochromatic
#0C0619 #1F0F42 #371A74 #4F25A6 #6936D2

Accessibility & contrast

On white

13.44
#371A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#371A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A74
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A74#FFFFFF#000000##FFFFFF
##371A741.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#223246
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #371a74;
/* rgb */ color: rgb(55, 26, 116);
/* oklch */ color: oklch(32.0% 0.143 290.8);
Tailwind
colors: {
  custom: {
    50: '#755a9d',
    500: '#371a74',
    950: '#000000',
  },
}
SCSS
$custom: #371a74;
$custom-light: #755a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#371a74",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 259.333,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32041,
    "c": 0.14263,
    "h": 290.8
  },
  "luminance": 0.02812
}

Semantic roles & 50–950 ramp

primary
#371A74
secondary
#87A941
accent
#E641B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371A74

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

Preview Lab → · Contrast checker → · Palette generator →

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