#371CA6#371CA6

#371CA6 is a dark, highly saturated violet. Relative luminance 0.044; OKLCH L 37.6% C 0.200 H 279.7°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#371CA6
RGBrgb(55, 28, 166)
HSLhsl(252, 71%, 38%)
HSVhsv(252, 83%, 65%)
CMYKcmyk(66.9%, 83.1%, 0%, 34.9%)
CIE-LABlab(24.94, 50.35, -68.29)
CIE-LCHlch(24.94, 84.85, 306.40°)
OKLaboklab(37.57% 0.0336 -0.1972)
OKLCHoklch(37.57% 0.2 279.7)
XYZxyz(8.8715, 4.3952, 36.4498)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371CA6 #8BA61C
analogous
#1C46A6 #371CA6 #7C1CA6
triadic
#371CA6 #A6371C #1CA637
tetradic
#371CA6 #A61C46 #8BA61C #1CA67C
square
#371CA6 #A61C46 #8BA61C #1CA67C
split-complementary
#371CA6 #A67C1C #46A61C
monochromatic
#140A3D #261372 #371CA6 #4825DA #7459E3

Accessibility & contrast

On white

11.17
#371CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#371CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371CA6
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371CA6#FFFFFF#000000##FFFFFF
##371CA61.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0036A4
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #371ca6;
/* rgb */ color: rgb(55, 28, 166);
/* oklch */ color: oklch(37.6% 0.200 279.7);
Tailwind
colors: {
  custom: {
    50: '#7e5ec2',
    500: '#371ca6',
    950: '#000000',
  },
}
SCSS
$custom: #371ca6;
$custom-light: #7e5ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#371ca6",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 166
  },
  "hsl": {
    "h": 251.739,
    "s": 71.134,
    "l": 38.039
  },
  "oklch": {
    "l": 0.3757,
    "c": 0.20001,
    "h": 279.7
  },
  "luminance": 0.04396
}

Semantic roles & 50–950 ramp

primary
#371CA6
secondary
#B1C757
accent
#EE3ACB
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #371CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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