#371A94#371A94

#371A94 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.181 H 283.0°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#371A94
RGBrgb(55, 26, 148)
HSLhsl(254, 70%, 34%)
HSVhsv(254, 82%, 58%)
CMYKcmyk(62.8%, 82.4%, 0%, 42%)
CIE-LABlab(22.61, 45.98, -61.12)
CIE-LCHlch(22.61, 76.49, 306.96°)
OKLaboklab(35.37% 0.0406 -0.1763)
OKLCHoklch(35.37% 0.181 283)
XYZxyz(7.2886, 3.6886, 28.3391)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A94 #77941A
analogous
#1A3A94 #371A94 #741A94
triadic
#371A94 #94371A #1A9437
tetradic
#371A94 #941A3A #77941A #1A9474
square
#371A94 #941A3A #77941A #1A9474
split-complementary
#371A94 #94741A #3A941A
monochromatic
#10082C #241160 #371A94 #4A23C8 #6D49DF

Accessibility & contrast

On white

12.08
#371A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#371A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A94
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A94#FFFFFF#000000##FFFFFF
##371A941.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#003F58
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #371a94;
/* rgb */ color: rgb(55, 26, 148);
/* oklch */ color: oklch(35.4% 0.181 283.0);
Tailwind
colors: {
  custom: {
    50: '#7b5cb5',
    500: '#371a94',
    950: '#000000',
  },
}
SCSS
$custom: #371a94;
$custom-light: #7b5cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#371a94",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 148
  },
  "hsl": {
    "h": 254.262,
    "s": 70.115,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35374,
    "c": 0.18087,
    "h": 283
  },
  "luminance": 0.03689
}

Semantic roles & 50–950 ramp

primary
#371A94
secondary
#A4C149
accent
#ED3BC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #371A94

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

Preview Lab → · Contrast checker → · Palette generator →

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