#371EA7#371EA7

#371EA7 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.200 H 279.3°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#371EA7
RGBrgb(55, 30, 167)
HSLhsl(251, 70%, 39%)
HSVhsv(251, 82%, 65%)
CMYKcmyk(67.1%, 82%, 0%, 34.5%)
CIE-LABlab(25.35, 49.76, -68.21)
CIE-LCHlch(25.35, 84.43, 306.11°)
OKLaboklab(37.89% 0.0324 -0.1969)
OKLCHoklch(37.89% 0.2 279.3)
XYZxyz(9.0126, 4.5300, 36.9512)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371EA7 #8EA71E
analogous
#1E49A7 #371EA7 #7B1EA7
triadic
#371EA7 #A7371E #1EA737
tetradic
#371EA7 #A71E49 #8EA71E #1EA77B
square
#371EA7 #A71E49 #8EA71E #1EA77B
split-complementary
#371EA7 #A77B1E #49A71E
monochromatic
#150B3F #261573 #371EA7 #492AD9 #765DE2

Accessibility & contrast

On white

11.02
#371EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#371EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371EA7
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371EA7#FFFFFF#000000##FFFFFF
##371EA71.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AB
Deuteranopia (green-blind)
#0037A5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #371ea7;
/* rgb */ color: rgb(55, 30, 167);
/* oklch */ color: oklch(37.9% 0.200 279.3);
Tailwind
colors: {
  custom: {
    50: '#7e5fc2',
    500: '#371ea7',
    950: '#000000',
  },
}
SCSS
$custom: #371ea7;
$custom-light: #7e5fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#371ea7",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 250.949,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37889,
    "c": 0.1996,
    "h": 279.3
  },
  "luminance": 0.04531
}

Semantic roles & 50–950 ramp

primary
#371EA7
secondary
#B3C65B
accent
#EC3BCC
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #371EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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