#371A99#371A99

#371A99 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.187 H 282.0°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#371A99
RGBrgb(55, 26, 153)
HSLhsl(254, 71%, 35%)
HSVhsv(254, 83%, 60%)
CMYKcmyk(64.1%, 83%, 0%, 40%)
CIE-LABlab(23.17, 47.44, -63.28)
CIE-LCHlch(23.17, 79.09, 306.86°)
OKLaboklab(35.92% 0.0389 -0.1826)
OKLCHoklch(35.92% 0.187 282)
XYZxyz(7.6929, 3.8504, 30.4686)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A99 #7C991A
analogous
#1A3C99 #371A99 #771A99
triadic
#371A99 #99371A #1A9937
tetradic
#371A99 #991A3C #7C991A #1A9977
square
#371A99 #991A3C #7C991A #1A9977
split-complementary
#371A99 #99771A #3C991A
monochromatic
#110830 #241165 #371A99 #4A23CD #6E4DE1

Accessibility & contrast

On white

11.86
#371A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#371A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A99
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A99#FFFFFF#000000##FFFFFF
##371A991.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003397
Tritanopia (blue-blind)
#00415B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #371a99;
/* rgb */ color: rgb(55, 26, 153);
/* oklch */ color: oklch(35.9% 0.187 282.0);
Tailwind
colors: {
  custom: {
    50: '#7c5cb8',
    500: '#371a99',
    950: '#000000',
  },
}
SCSS
$custom: #371a99;
$custom-light: #7c5cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#371a99",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 153
  },
  "hsl": {
    "h": 253.701,
    "s": 70.95,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35922,
    "c": 0.18666,
    "h": 282
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#371A99
secondary
#A8C34C
accent
#EE3AC5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #371A99

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

Preview Lab → · Contrast checker → · Palette generator →

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