#371E97#371E97

#371E97 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.181 H 281.9°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#371E97
RGBrgb(55, 30, 151)
HSLhsl(252, 67%, 35%)
HSVhsv(252, 80%, 59%)
CMYKcmyk(63.6%, 80.1%, 0%, 40.8%)
CIE-LABlab(23.59, 45.00, -61.36)
CIE-LCHlch(23.59, 76.09, 306.25°)
OKLaboklab(36.15% 0.0373 -0.177)
OKLCHoklch(36.15% 0.181 281.9)
XYZxyz(7.6240, 3.9746, 29.6376)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E97 #7E971E
analogous
#1E4197 #371E97 #741E97
triadic
#371E97 #97371E #1E9737
tetradic
#371E97 #971E41 #7E971E #1E9774
square
#371E97 #971E41 #7E971E #1E9774
split-complementary
#371E97 #97741E #41971E
monochromatic
#120A31 #241464 #371E97 #4A28CA #6F53DD

Accessibility & contrast

On white

11.70
#371E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#371E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E97
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E97#FFFFFF#000000##FFFFFF
##371E971.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #371e97;
/* rgb */ color: rgb(55, 30, 151);
/* oklch */ color: oklch(36.1% 0.181 281.9);
Tailwind
colors: {
  custom: {
    50: '#7b5eb7',
    500: '#371e97',
    950: '#000000',
  },
}
SCSS
$custom: #371e97;
$custom-light: #7b5eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#371e97",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 252.397,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36146,
    "c": 0.18092,
    "h": 281.9
  },
  "luminance": 0.03975
}

Semantic roles & 50–950 ramp

primary
#371E97
secondary
#A9C051
accent
#EA3EC6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #371E97

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

Preview Lab → · Contrast checker → · Palette generator →

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