#371A89#371A89

#371A89 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.168 H 285.3°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#371A89
RGBrgb(55, 26, 137)
HSLhsl(256, 68%, 32%)
HSVhsv(256, 81%, 54%)
CMYKcmyk(59.9%, 81%, 0%, 46.3%)
CIE-LABlab(21.42, 42.75, -56.25)
CIE-LCHlch(21.42, 70.65, 307.23°)
OKLaboklab(34.19% 0.0442 -0.162)
OKLCHoklch(34.19% 0.168 285.3)
XYZxyz(6.4589, 3.3568, 23.9696)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A89 #6C891A
analogous
#1A3489 #371A89 #6F1A89
triadic
#371A89 #89371A #1A8937
tetradic
#371A89 #891A34 #6C891A #1A896F
square
#371A89 #891A34 #6C891A #1A896F
split-complementary
#371A89 #896F1A #34891A
monochromatic
#0E0622 #221056 #371A89 #4C24BC #6A42DB

Accessibility & contrast

On white

12.56
#371A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#371A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A89
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A89#FFFFFF#000000##FFFFFF
##371A891.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#003087
Tritanopia (blue-blind)
#083B52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371a89;
/* rgb */ color: rgb(55, 26, 137);
/* oklch */ color: oklch(34.2% 0.168 285.3);
Tailwind
colors: {
  custom: {
    50: '#795bad',
    500: '#371a89',
    950: '#000000',
  },
}
SCSS
$custom: #371a89;
$custom-light: #795bad;
$custom-dark: #000000;
JSON
{
  "hex": "#371a89",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 255.676,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34191,
    "c": 0.16798,
    "h": 285.3
  },
  "luminance": 0.03357
}

Semantic roles & 50–950 ramp

primary
#371A89
secondary
#9CBC43
accent
#EB3DBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371A89

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

Preview Lab → · Contrast checker → · Palette generator →

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