#371A9B#371A9B

#371A9B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.189 H 281.7°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#371A9B
RGBrgb(55, 26, 155)
HSLhsl(253, 71%, 35%)
HSVhsv(253, 83%, 61%)
CMYKcmyk(64.5%, 83.2%, 0%, 39.2%)
CIE-LABlab(23.40, 48.03, -64.14)
CIE-LCHlch(23.40, 80.13, 306.83°)
OKLaboklab(36.14% 0.0382 -0.185)
OKLCHoklch(36.14% 0.189 281.7)
XYZxyz(7.8595, 3.9170, 31.3459)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A9B #7E9B1A
analogous
#1A3E9B #371A9B #771A9B
triadic
#371A9B #9B371A #1A9B37
tetradic
#371A9B #9B1A3E #7E9B1A #1A9B77
square
#371A9B #9B1A3E #7E9B1A #1A9B77
split-complementary
#371A9B #9B771A #3E9B1A
monochromatic
#120832 #241167 #371A9B #4A23CF #6F4EE1

Accessibility & contrast

On white

11.77
#371A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#371A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A9B
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A9B#FFFFFF#000000##FFFFFF
##371A9B1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00425C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #371a9b;
/* rgb */ color: rgb(55, 26, 155);
/* oklch */ color: oklch(36.1% 0.189 281.7);
Tailwind
colors: {
  custom: {
    50: '#7c5cba',
    500: '#371a9b',
    950: '#000000',
  },
}
SCSS
$custom: #371a9b;
$custom-light: #7c5cba;
$custom-dark: #000000;
JSON
{
  "hex": "#371a9b",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 155
  },
  "hsl": {
    "h": 253.488,
    "s": 71.271,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36143,
    "c": 0.18896,
    "h": 281.7
  },
  "luminance": 0.03918
}

Semantic roles & 50–950 ramp

primary
#371A9B
secondary
#A9C44D
accent
#EE3AC6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #371A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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