#371B99#371B99

#371B99 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.186 H 281.9°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#371B99
RGBrgb(55, 27, 153)
HSLhsl(253, 70%, 35%)
HSVhsv(253, 82%, 60%)
CMYKcmyk(64.1%, 82.4%, 0%, 40%)
CIE-LABlab(23.32, 47.00, -63.03)
CIE-LCHlch(23.32, 78.62, 306.71°)
OKLaboklab(36.03% 0.0384 -0.1818)
OKLCHoklch(36.03% 0.186 281.9)
XYZxyz(7.7154, 3.8954, 30.4761)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B99 #7D991B
analogous
#1B3E99 #371B99 #761B99
triadic
#371B99 #99371B #1B9937
tetradic
#371B99 #991B3E #7D991B #1B9976
square
#371B99 #991B3E #7D991B #1B9976
split-complementary
#371B99 #99761B #3E991B
monochromatic
#120931 #241265 #371B99 #4A24CD #6F4FE0

Accessibility & contrast

On white

11.80
#371B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371B99
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B99#FFFFFF#000000##FFFFFF
##371B991.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003397
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #371b99;
/* rgb */ color: rgb(55, 27, 153);
/* oklch */ color: oklch(36.0% 0.186 281.9);
Tailwind
colors: {
  custom: {
    50: '#7c5db8',
    500: '#371b99',
    950: '#000000',
  },
}
SCSS
$custom: #371b99;
$custom-light: #7c5db8;
$custom-dark: #000000;
JSON
{
  "hex": "#371b99",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 153
  },
  "hsl": {
    "h": 253.333,
    "s": 70,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36027,
    "c": 0.18585,
    "h": 281.9
  },
  "luminance": 0.03896
}

Semantic roles & 50–950 ramp

primary
#371B99
secondary
#A8C24E
accent
#ED3BC5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #371B99

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

Preview Lab → · Contrast checker → · Palette generator →

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